X11 -- how do you prevent window from closing if user closes it

Mike Hearn mh at codeweavers.com
Fri Jun 24 16:39:48 CDT 2005

On Thu, 23 Jun 2005 21:36:50 -0400, Peter Quiring wrote:
> FYI :Porting some code over to Linux and need a little help.

Use GTK+ instead of Xlib (bonus: your new Linux port will also run on
Windows) and connect to the delete signal (I think that's it). You can
veto the close there. There's plenty of example code you can use in other
open source GTK+ apps (for instance, GEdit).

thanks -mike

More information about the wine-devel mailing list