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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
Ok, thanks. 2.5.3 solved this problem!