This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

event delivery changes after XWin minimize/restore or resize


Recently (last week) my window manager key bindings stopped working after I minimize XWin window and restore it or resize it. My combination of Alt key and mouse clicks do not work anymore. I use kind of exotic window manager (ctwm) so to make it easy to replicate I used xev to repeat the same Alt + mouse click sequence and captured the xev list of events before and after XWin minimize and restore. It looks like the list of events listed changes drastically explaining why ctwm stopped behaving properly. I see the same behavior in Win8-64 and Win7-32. I see that Alt key stopped working as a modifier. I tried twm instead of ctwm with the same result.

Here is the output of xev before XWin minimize/restore or resize while pressing Alt and clicking left mouse button in xev window:

LeaveNotify event, serial 32, synthetic NO, window 0xc00001,
    root 0x16d, subw 0xc00002, time 118362968, (41,42), root:(1747,393),
    mode NotifyGrab, detail NotifyVirtual, same_screen YES,
    focus NO, state 264

EnterNotify event, serial 32, synthetic NO, window 0xc00001,
    root 0x16d, subw 0xc00002, time 118363968, (41,42), root:(1747,393),
    mode NotifyUngrab, detail NotifyVirtual, same_screen YES,
    focus NO, state 8

KeymapNotify event, serial 32, synthetic NO, window 0x0,
    keys:  109 0   0   0   0   0   0   0   1   0   0   0   0 0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0 0   0   0

Here is the output of the same actions after XWin minimize/restore:

KeyPress event, serial 38, synthetic NO, window 0xc00001,
    root 0x16d, subw 0xc00002, time 118672828, (49,36), root:(1755,387),
    state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

ButtonPress event, serial 38, synthetic NO, window 0xc00001,
    root 0x16d, subw 0xc00002, time 118673687, (49,36), root:(1755,387),
    state 0x18, button 1, same_screen YES

EnterNotify event, serial 38, synthetic NO, window 0xc00001,
    root 0x16d, subw 0x0, time 118672828, (49,36), root:(1755,387),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus YES, state 280

KeymapNotify event, serial 38, synthetic NO, window 0x0,
    keys:  109 0   0   0   0   0   0   0   1   0   0   0   0   0 0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0 0   0

ButtonRelease event, serial 38, synthetic NO, window 0xc00001,
    root 0x16d, subw 0xc00002, time 118673703, (49,36), root:(1755,387),
    state 0x118, button 1, same_screen YES

LeaveNotify event, serial 38, synthetic NO, window 0xc00001,
    root 0x16d, subw 0x0, time 118673703, (49,36), root:(1755,387),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus YES, state 24



--
Peter Ziobrzynski, mailto:pzi@pzi.net

Attachment: cygcheck.out
Description: Text document

Attachment: XWin.0.log.old
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]