Shift-click

Marcus Sundman sundman "at" iki.fi
Fri Apr 30 02:48:01 2004


Hi,

It seems to be impossible to shift-click in vnc. Well, at least in my 
configuration, which is a 3.3.7 server running on linux and a 3.3.7 client 
also running on linux.

"Shift down, mousebutton down, mousebutton up, shift up" generates the 
following xev output:
----------------8<--------------------------------------------
KeyPress event, serial 24, synthetic NO, window 0x4800001,
    root 0x25, subw 0x0, time 957155745, (167,5), root:(170,34),
    state 0x0, keycode 10 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes:  ""

KeyRelease event, serial 24, synthetic NO, window 0x4800001,
    root 0x25, subw 0x0, time 957156931, (167,5), root:(170,34),
    state 0x1, keycode 10 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes:  ""

ButtonPress event, serial 24, synthetic NO, window 0x4800001,
    root 0x25, subw 0x0, time 957156934, (167,5), root:(170,34),
    state 0x0, button 1, same_screen YES

ButtonRelease event, serial 24, synthetic NO, window 0x4800001,
    root 0x25, subw 0x0, time 957157158, (167,5), root:(170,34),
    state 0x100, button 1, same_screen YES
---------------->8--------------------------------------------

As you can see, vnc incorrectly generates a KeyRelease event just before it 
generates the ButtonPress event, even though the KeyRelease event should 
come after the ButtonRelease event. Releasing <Shift> after this generates 
no event at all.

This highly annoying bug seems to have been present at least since 3.3.3, 
i.e. three years. Does anyone know if there will ever be a fix for it?


- Marcus Sundman