winIsFakeCtrl_L does not work correctly in Windows XP

Harold L Hunt II huntharo@msu.edu
Thu Aug 14 15:43:00 GMT 2003


Oskar,

When I wrote the initial code I did not have Windows XP.  I believe that 
there has been discussion on the mailing list about a work-around for 
Windows XP on the mailing list.  Please search the archives.

I will eventually take a look at this, but I cannot promise anything.

Writing this code originally took a lot of time and meticulous tracking 
of exactly what is happening.  I estimate it would take about 20 hours 
to get comfortable with the code again and fix the problem.

Harold

Oskar Malm wrote:

> I have investigated this a little bit further and it appears
> as if this problem only occurs on Windows XP (not W2K or NT).
> In addition, it is not a new problem either, because I tried
> a Cygwin release from Q4 2002 and had the same problem.
> 
> Here is a trace from xev:
> 
> KeyPress event, serial 23, synthetic NO, window 0x2000001,
>     root 0x3a, subw 0x2000002, time 168910630, (48,24), root:(115,203),
>     state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
>     XLookupString gives 0 characters:  ""
> 
> KeyPress event, serial 23, synthetic NO, window 0x2000001,
>     root 0x3a, subw 0x2000002, time 168910630, (48,24), root:(115,203),
>     state 0x4, keycode 113 (keysym 0xff7e, Mode_switch), same_screen YES,
>     XLookupString gives 0 characters:  ""
> 
> KeyRelease event, serial 24, synthetic NO, window 0x2000001,
>     root 0x3a, subw 0x2000002, time 168910710, (48,24), root:(115,203),
>     state 0x2004, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
>     XLookupString gives 0 characters:  ""
> 
> KeyRelease event, serial 24, synthetic NO, window 0x2000001,
>     root 0x3a, subw 0x2000002, time 168910710, (48,24), root:(115,203),
>     state 0x2000, keycode 113 (keysym 0xff7e, Mode_switch), same_screen YES,
>     XLookupString gives 0 characters:  ""
> 
> Clearly the Control_L events should not be there. Maybe Windows XP generates
> these events in a different order causing the filter to fail?
> 
> /Oskar
> 
> -----Original Message-----
> From: Oskar Malm [mailto:oskar.malm@kreatel.se]
> Sent: den 12 augusti 2003 19:02
> To: 'cygwin-xfree@cygwin.com'
> Subject: FW: winIsFakeCtrl_L does not work correctly in Windows XP
> 
> 
> Hi,
> 
> Today I upgraded my Windows machine from NT4 to XP and also reinstalled the
> latest version of
> XFree86. Now the right Alt key (AltGr) on my swedish keyboard does not work
> any more. I checked
> what events are generated with xev and found that some, but not all extra
> CTRL events generated
> by Windows are not filtered. There was no obvious pattern. Is this a known
> issue?
> 
> Thanks,
> Oskar Malm



More information about the Cygwin-xfree mailing list