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

2005-06-23 Thread Peter Quiring
I trying to use X11 and let's say I create a text editor. Let's say the user is using the text editor, makes some changes and then clicks on the [X] to close the window before saving changes.I want to popup a "are you sure" before the window is closed but X11 doesn't allow this. How does

Howto process X11 events async'ly

2005-01-22 Thread Peter Quiring
ource but can't follow it. Thanks in advance. I've asked this question many times @ linuxforum.com but no one there understands the problem. Peter Quiring