Fix in hand for Exit confirmation problem

Harold L Hunt II huntharo@msu.edu
Sat May 10 05:18:00 GMT 2003


It seems that someone invariably describes a problem in this mailing 
list minutes after I fix it in my local tree --- thus, I will describe a 
problem that I just fixed to preempt this next someone from describing 
my fix.  :)

The problem goes like this:
1) Open XWin.exe

2) Get the Exit confirmation dialog box to popup via either the tray 
icon or by pressing one of the exit key combos (e.g. Alt-F4).

3) Do something that causes the X Server to reset.  One way to do this 
is to initiate logging off of an XDMCP session before popping up the 
Exit confirmation box.  Another way would simple be to select Reset from 
your XDMCP login screen while the Exit confirmation is displayed.

4) Notice that the Exit confirmation dialog disappears when the X Server 
resets.

5) Notice that you can no longer get the Exit confirmation to appear by 
pressing Alt-F4, nor by selecting Exit from the tray icon right-click menu.


The problem was that I was not destroying the Exit confirmation dialog 
and NULLing its pointer when the X Server reset.  This non-NULL pointer 
caused the dialog not to be recreated, but it couldn't be redisplayed 
because it was attached to a HWND that had been destroyed (the X Server 
window is closed and opened on each reset).

I added calls to destroy the dialog and NULL the dialog pointer when the 
X Server resets.

I will release this patch with my next Test release, which will be 
sometime this weekend or next week.

Harold



More information about the Cygwin-xfree mailing list