Re: Help? GTK events do/dont's for dummies (nothing works)
Posted: Mon Jun 17, 2019 4:50 pm
FWIW the paid (non-opensource) version of Xming is able to run the cube demo without the surface corruption issue exhibited by the Cygwin X server.
It can also run my software, mostly... it still occasionally goes into non-communicative mode. I'm trying to find superior ways to debug these things, but I'm pretty new to the scene. The generally recommended technique of using "--sync" is getting me nowhere. GTK refuses to consume it, and I cannot see a difference, on both Ubuntu and Cygwin. Though oddly Cygwin aborts on "sync" as unrecognized (command-line parsing system I've not yet dug into) but Ubuntu strangely does not. But it doesn't strip it from the arguments either. So I assume it's doing nothing.
If I had to bet, I'm thinking the corruption problem is the GTK2 path again. Xming is not a better server than Cygwin's I'd say overall in terms of visual compatibility. The Cygwin server has some true annoyances, like it cannot hide windows without destroying them. I tried to get them to fix this so glutHideWindow would work, but they still haven't. Since I'm writing my own GLUT layer I can now pseudo-hide the windows in various ways. Xming can't raise/lower windows or change their order. Generally these limitations probably only apply to "subwindows".
wxGLCanvas has an x11Direct member that appears to not be used:
https://github.com/wxWidgets/wxWidgets/ ... =x11Direct
It's a problem that it assumes direct connections. One X server I have (X410) flat refuses direct (DRI) connections. Part of the problem is lack of solid server options on Windows. I've written some user-agent code for them, but I have a filling there may be many more server options in the world outside Windows by comparison. It's a little unsettling to have to write code against unreliable agents, but it's not so different from web design.
It can also run my software, mostly... it still occasionally goes into non-communicative mode. I'm trying to find superior ways to debug these things, but I'm pretty new to the scene. The generally recommended technique of using "--sync" is getting me nowhere. GTK refuses to consume it, and I cannot see a difference, on both Ubuntu and Cygwin. Though oddly Cygwin aborts on "sync" as unrecognized (command-line parsing system I've not yet dug into) but Ubuntu strangely does not. But it doesn't strip it from the arguments either. So I assume it's doing nothing.
If I had to bet, I'm thinking the corruption problem is the GTK2 path again. Xming is not a better server than Cygwin's I'd say overall in terms of visual compatibility. The Cygwin server has some true annoyances, like it cannot hide windows without destroying them. I tried to get them to fix this so glutHideWindow would work, but they still haven't. Since I'm writing my own GLUT layer I can now pseudo-hide the windows in various ways. Xming can't raise/lower windows or change their order. Generally these limitations probably only apply to "subwindows".
wxGLCanvas has an x11Direct member that appears to not be used:
https://github.com/wxWidgets/wxWidgets/ ... =x11Direct
It's a problem that it assumes direct connections. One X server I have (X410) flat refuses direct (DRI) connections. Part of the problem is lack of solid server options on Windows. I've written some user-agent code for them, but I have a filling there may be many more server options in the world outside Windows by comparison. It's a little unsettling to have to write code against unreliable agents, but it's not so different from web design.