Menu

WM_DELETE_MESSAGE / [VGL] 184: Window has been deleted

Help
2017-10-20
2017-10-20
  • rolf schneider

    rolf schneider - 2017-10-20

    Hi.

    we're having a problem with vgl in connection with "freeglut" on Linux. Our app usually opens multiple windows which the user can close one by one by clicking on the little "x" button (window manager decorations bar).

    In order to implement this, freeglut configures a WM_DELETE_WINDOW "atom" and if the user clicks on a "x" button a specific "delete" message is received. We added some custom code to be able to prevent a window from being closed (and eventually ask the user some additional questions, or so).

    Within this code, there is a call to glXMakeCurrent(), which is necessary. Unfortunately, it causes our app to be killed with the following error message:

    [VGL] ERROR: in getGLXDrawable--
    [VGL] 184: Window has been deleted by window manager

    Our app is available for many years now with this code, and we never saw any problems on any platform (or window manager)!

    Can you please explain why "vgl" thinks that the window has been deleted? According to some X11 guidelines, the WM_DELETE_WINDOW message can be ignored, if the app doesn't want the window in question to be closed (for what ever reason)...

    Any help will be really appreciated!

    Thanks a lot, R.

     
  • DRC

    DRC - 2017-10-20

    Should already be fixed in the master branch, and a pre-release build is available with the fix: https://virtualgl.org/DeveloperInfo/PreReleases. Please post this sort of thing as a GitHub issue in the future. We use SourceForge solely for file releases these days.

     
  • rolf schneider

    rolf schneider - 2017-10-23

    Ok, thanks. 2.5.3 solved this problem!

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.