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] |
The recent patch for sending modifier key presses when a window gains focus depending on internal state and modifier key state has a problem. If the right control key is pressed when a window is gaining focus, it receives a left control keydown event, and the control state gets stuck because the window never receives a left control keyup event. The problem is fairly easy to replicate: run emacs-X11 from xterm, quit with [C-x C-x] using right control (which gives focus back to xterm), and try pressing keys. Until you press left control, all keys you've pressed get interpreted as [C-key]. The patch is easy (and it has already been raised in http://cygwin.com/ml/cygwin-xfree/2012-01/msg00003.html, but the idea was dismissed later because of internal state only keeping track of control key, and not individual left/right control keys). I have tried the patch below, and didn't observe any side effects so far. I've also modified the alt/ctrl check t only consider lctrl, since the other parts of the source seemed to indicate altgr emits a spurious lctrl. Best regards, Vedat Hallac
Attachment:
0001-Fix-stuck-RCtrl-key-problem.patch
Description: Binary data
-- 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] |