Mark Selby <mse...@panix.com> TOP POSTED AGAIN: > On 9/16/13 12:25 PM, Dan Espen wrote: >> Mark Selby <mse...@panix.com> top posted: >>> On 9/16/13 12:01 PM, Dan Espen wrote: >>>> Mark Selby <mse...@panix.com> writes: >>>> >>>>> I am running FVWM 2.5.31 on a CentOS 6.4 (x64_64) host using RealVNC >>>>> 5.05 as a VNC Server. My client is a Mac Running OSX 10.8.5. >>>>> >>>>> I am having an issue whereby certain modifier keys spontaneously stop >>>>> working and the only way that I can restore their functionality is to >>>>> kill and restart FVWM. >>>>> >>>>> Key Left A CM Scroll -100 +0 >>>>> Key Up A CM Scroll +0 -100 >>>>> Key Right A CM Scroll +100 +0 >>>>> Key Down A CM Scroll +0 +100 >>>>> >>>>> The above are the 4 lines in my .fvwm2rc which allow me to use >>>>> Ctrl-Alt-Arrow to move my workspace in any direction that I choose. >>>>> >>>>> I go along fine for a period of time and then something happens where >>>>> Ctrl-Alt-Arrow stops working and all I get when I use these keys is >>>>> the capital letters ABCD when I use one of these key combinations. >>>>> >>>>> There is nothing in any log file that points me in any direction as to >>>>> what is happening. >>>>> >>>>> Does anyone have any insight as to what is going on or how I may >>>>> further troubleshoot this issue. >>>>> >>>>> All and any help is greatly appreciated >>>> Sounds like the first question in the FAQ. >>>> Pay attention to the numlock key. >>>> >>> I did read the FAQ and I do not think that this is my problem as (1) I >>> have checked that the numlock key is off and (2) When my num lock >>> light is active the modifier keys actually work >> To diagnose, use xev, this is a tiny application that tells you what >> X thinks your keys are emitting. >> >> Record the key values while the bindings work, then when they don't >> work. There is a possibility VNC or something else has grabbed the >> keys for itself.
> I am not an X expert at all but from what I can see here it looks like > FVWM stops intercepting the arrow keys. When things are working xev > sees the left and right Ctrl/Alt press and then there is a whole bunch > of focus in/out messages. There is never a KeyPress/KeyRelease event > relating to Righr/Left/Up/Down when things are working. Once things > stop working then all xev repots are 3 key press and key release > operations. > > Any ideas? > > > > XEV when modifer DOES NOT WORK > > KeyPress event, serial 32, synthetic NO, window 0x1400001, > root 0x3f, subw 0x1400002, time 682430306, (47,45), root:(94,154), > state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False > > KeyPress event, serial 35, synthetic NO, window 0x1400001, > root 0x3f, subw 0x1400002, time 682430329, (47,45), root:(94,154), > state 0x14, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False > > KeyPress event, serial 35, synthetic NO, window 0x1400001, > root 0x3f, subw 0x1400002, time 682430515, (47,45), root:(94,154), > state 0x1c, keycode 102 (keysym 0xff53, Right), same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False > > KeyRelease event, serial 35, synthetic NO, window 0x1400001, > root 0x3f, subw 0x1400002, time 682430610, (47,45), root:(94,154), > state 0x1c, keycode 102 (keysym 0xff53, Right), same_screen YES, > XLookupString gives 0 bytes: > XFilterEvent returns: False > > KeyRelease event, serial 35, synthetic NO, window 0x1400001, > root 0x3f, subw 0x1400002, time 682430723, (47,45), root:(94,154), > state 0x1c, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES, > XLookupString gives 0 bytes: > XFilterEvent returns: False > > KeyRelease event, serial 35, synthetic NO, window 0x1400001, > root 0x3f, subw 0x1400002, time 682430729, (47,45), root:(94,154), > state 0x14, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, > XLookupString gives 0 bytes: > XFilterEvent returns: False > > > XEV when modifer DOES WORK > > > KeyPress event, serial 35, synthetic NO, window 0x1400001, > root 0x3f, subw 0x0, time 675702989, (10,-10), root:(714,55), > state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False > > KeyPress event, serial 35, synthetic NO, window 0x1400001, > root 0x3f, subw 0x0, time 675703005, (10,-10), root:(714,55), > state 0x4, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False Well, I was thinking about what I asked you to do. Xev should not be able to trace the key press of Right when Fvwm is intercepting it. So your traces for when it works are correct. Xev can see the modifiers, but when Fvwm intercepts the Right key, xev won't see that. I've never seen Fvwm stop intercepting a key unless a command is given like: Key Right A CM - which would remove the binding. To see the current bindings of a running Fvwm, use the command Printinfo bindings The output will be where ever you have stderr directed. Use FvwmTalk, FvwmConsole, or FvwmCommand to issue the Printinfo command. -- Dan Espen