Bug#406549: kwin: switch desktop with win+tab key broken
Package: kwin
Version: 4:3.5.5a.dfsg.1-5
Severity: normal
I used to be able to switch between virtual desktops by using the Windows Key
+ Tab (I use the "KDE Default for 4 Modifier Keys" in the Keyboard Shortcuts
section of kcontrol. However, this no longer works since upgrading to etch
(and is also broken on fresh installs). The shortcut is still recognised as I
can switch between the last 2 desktops, but I cannot switch between more than
that and the window listing all the desktops is not displayed.
Digging into the kwin code (kdebase/kwin/tabbox.cpp I think), I think that the
short cut is recognised, but kwin no longer recognises the Windows Key as a
modifier.
The output from xmodmap -pm is:
[rob@linchpin ~]$ xmodmap -pm
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_L (0x7d)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
However, if I run xev, the left Win key generates keycode 115(0x73) and the
right Win key generates keycode 116(0x74).
Adding the following line to the keyboard section /etc/X11/xorg.conf fixes the
issue:
Option "XkbOptions" "altwin:super_win"
With this option I can switch between all desktops and I see the list of
desktops while I hold down the Win key. The xmodmap output is now:
[rob@linchpin ~]$ xmodmap -pm
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_L (0x7d), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x73), Super_R (0x74), Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
However, I still think this is a bug as this option is not set by default and
less experienced users will not know how to fix it. It's either in the xkb
rules (as they suggest altwin:super_win is the default), the debian X config
generator (for not setting the altwin:super_win option) or kwin (for not
recognising the Win key as a modifier).
Regards
Rob Walker
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (900, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-k7
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Versions of packages kwin depends on:
ii kdelibs4c2a 4:3.5.5a.dfsg.1-5 core libraries and binaries for al
ii libart-2.0-2 2.3.17-1 Library of functions for 2D graphi
ii libaudio2 1.8-2 The Network Audio System (NAS). (s
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libfontconfig1 2.4.1-2 generic font configuration library
ii libfreetype6 2.2.1-5 FreeType 2 font engine, shared lib
ii libgcc1 1:4.1.1-19 GCC support library
ii libice6 1:1.0.1-2 X11 Inter-Client Exchange library
ii libidn11 0.6.5-1 GNU libidn library, implementation
ii libjpeg62 6b-13 The Independent JPEG Group's JPEG
ii libpng12-0 1.2.15~beta5-1 PNG library - runtime
ii libqt3-mt 3:3.3.7-2 Qt GUI Library (Threaded runtime v
ii libsm6 1:1.0.1-3 X11 Session Management library
ii libstdc++6 4.1.1-19 The GNU Standard C++ Library v3
ii libx11-6 2:1.0.3-4 X11 client-side library
ii libxcomposite1 1:0.3-3 X11 Composite extension library
ii libxcursor1 1.1.7-4 X cursor management library
ii libxdamage1 1:1.0.3-3 X11 damaged region extension libra
ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar
ii libxfixes3 1:4.0.1-5 X11 miscellaneous 'fixes' extensio
ii libxft2 2.1.8.2-8 FreeType-based font drawing librar
ii libxi6 1:1.0.1-4 X11 Input extension library
ii libxinerama1 1:1.0.1-4.1 X11 Xinerama extension library
ii libxrandr2 2:1.1.0.2-5 X11 RandR extension library
ii libxrender1 1:0.9.1-3 X Rendering Extension client libra
ii libxt6 1:1.0.2-2 X11 toolkit intrinsics library
ii zlib1g 1:1.2.3-13 compression library - runtime
kwin recommends no packages.
-- no debconf information
Reply to: