http://bugs.winehq.org/show_bug.cgi?id=9301
--- Comment #4 from Jörg Höhle hoehle@users.sourceforge.net 2007-08-14 07:28:21 --- To me it looks a bit like a race condition somewhere. I've observed different cases, solely running winecfg and clicking next to the "ok" box. - winecfg unselected, click, becomes selected - winecfg selected, click, remains selected (but short flashing of title screen) - idem, no visible flashing - winecfg selected, click, becomes unselected. The last case is rare after moving the winecfg window inside the virtual desktop for the first time, but almost 100% when just started.
Here's some WINEDEBUG=trace+event winecfg. The ony difference is fg=20/24. window selected & remains selected trace:event:process_events MotionNotify for hwnd/window 0x10024/3600001 trace:event:process_events processed 1 events trace:event:process_events ClientMessage for hwnd/window 0x10020/3a00007 trace:event:handle_wm_protocols got take focus msg for 0x10020, enabled=1, visible=1 (style 96000000), focus=0x10020, active=0x10020, fg=0x10024, last=(nil) trace:event:set_focus setting foreground window to 0x10020 trace:event:process_events processed 1 events trace:event:process_events EnterNotify for hwnd/window 0x10024/3600001 trace:event:process_events KeymapNotify for hwnd/window (nil)/0 trace:event:process_events ButtonPress for hwnd/window 0x10024/3600001 trace:event:process_events processed 3 events trace:event:process_events ButtonRelease for hwnd/window 0x10024/3600001 trace:event:process_events processed 1 events trace:event:process_events MotionNotify for hwnd/window 0x10024/3600001 trace:event:process_events processed 1 events
window unselected, becomes selected via click trace:event:process_events MotionNotify for hwnd/window 0x10024/3600001 trace:event:process_events processed 1 events trace:event:process_events ClientMessage for hwnd/window 0x10020/3a00007 trace:event:handle_wm_protocols got take focus msg for 0x10020, enabled=1, visible=1 (style 96000000), focus=0x10020, active=0x10020, fg=0x10020, last=(nil) trace:event:set_focus setting foreground window to 0x10020 trace:event:process_events processed 1 events trace:event:process_events EnterNotify for hwnd/window 0x10024/3600001 trace:event:process_events KeymapNotify for hwnd/window (nil)/0 trace:event:process_events ButtonPress for hwnd/window 0x10024/3600001 trace:event:process_events processed 3 events trace:event:process_events ButtonRelease for hwnd/window 0x10024/3600001 trace:event:process_events processed 1 events trace:event:process_events MotionNotify for hwnd/window 0x10024/3600001 trace:event:process_events processed 1 events
unselected, click, remains unselected (right after starting the app) (Click would then not toggle boolean button). trace:event:process_events MotionNotify for hwnd/window 0x10024/3600001 trace:event:process_events processed 1 events trace:event:process_events EnterNotify for hwnd/window 0x10024/3600001 trace:event:process_events KeymapNotify for hwnd/window (nil)/0 trace:event:process_events ButtonPress for hwnd/window 0x10024/3600001 trace:event:process_events processed 3 events trace:event:process_events ClientMessage for hwnd/window 0x10020/3a00007 trace:event:handle_wm_protocols got take focus msg for 0x10020, enabled=1, visible=1 (style 96000000), focus=0x10020, active=0x10020, fg=0x10024, last=(nil) trace:event:set_focus setting foreground window to 0x10020 trace:event:process_events processed 1 events trace:event:process_events ButtonRelease for hwnd/window 0x10024/3600001 trace:event:process_events processed 1 events trace:event:process_events MotionNotify for hwnd/window 0x10024/3600001 trace:event:process_events processed 1 events
Note the different order of events in the last case. All traces where taken with focus_mouse "sloppy".