Secondary keyboard layout on Fedora 11



	Hello,

after an upgrade to Fedora 11, I have discovered that my sawfish (1.3.5.1)
does not respond to mouse clicks on window decorations (trying to move
or resize window, click on the iconify button, etc.), when the secondary
keyboard layout is activated. Keyboard bindings (e.g. switching virtual
desktops or sending a window to another virtual desktop) work both
on primary and secondary layout.

	By running xev(1) I have discovered that both mouse button
and keyboard events are reported with the 0x2000 bit set in the "state"
field:

Secondary keymap:

ButtonPress event, serial 28, synthetic NO, window 0x4800001,
    root 0x7f, subw 0x0, time 1455746011, (64,123), root:(1268,143),
    state 0x2010, button 1, same_screen YES

ButtonRelease event, serial 28, synthetic NO, window 0x4800001,
    root 0x7f, subw 0x0, time 1455746164, (64,123), root:(1268,143),
    state 0x2110, button 1, same_screen YES

Primary keymap:

ButtonPress event, serial 28, synthetic NO, window 0x4800001,
    root 0x7f, subw 0x0, time 1455737518, (64,123), root:(1268,143),
    state 0x10, button 1, same_screen YES

ButtonRelease event, serial 28, synthetic NO, window 0x4800001,
    root 0x7f, subw 0x0, time 1455737983, (64,123), root:(1268,143),
    state 0x110, button 1, same_screen YES

	My keyboard layout is as follows:

$ setxkbmap -print
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete+ledscroll(group_lock)"	};
	xkb_symbols   { include "pc+us+cz(qwerty):2+inet(evdev)+group(switch)+group(shifts_toggle)"	};
	xkb_geometry  { include "pc(pc104)"	};
};

It is possible to set this keyboard layout with the following command:

# setxkbmap -option grp_led:scroll -option group:shifts_toggle \
	-option grp_mode:switch us,'cz(qwerty)'

and then you can switch to the secondary layout by pressing both shift keys.

	What can I do to make sawfish working also with the secondary
keyboard layout? I am pretty sure it worked with earlier Fedora releases,
so maybe the change in is the way how the F11 X server reports the secondary
keymap.

	Thanks,

-Yenya

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/    Journal: http://www.fi.muni.cz/~kas/blog/ |
>> If we wanted to trade simplicity and kewl design for usability I think <<
>> we all know the URL of the Apple Store.               --jmorris42 @LWN <<


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]