Bug 125246 - Walk Through Windows on Windows+Tab only cycles between two windows; ALT+Tab works fine
Summary: Walk Through Windows on Windows+Tab only cycles between two windows; ALT+Tab ...
Status: RESOLVED DUPLICATE of bug 140023
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 120307 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-09 21:10 UTC by Sebastian Schubert
Modified: 2007-01-24 14:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Schubert 2006-04-09 21:10:00 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Gentoo Packages
Compiler:          gcc 3.4.5 
OS:                Linux

I used Windows+Tab for Walk Through Windows for quite some time (KDE 3.4.1 until now) and I never had any problems. Recently I changed to KDE 3.5.2 and Xorg 7 and now Windows+Tab only cycles between two windows. After setting it to the default Alt+Tab it works correctly. In addition, Windows+Shift+Tab for Reverse works well too.
Comment 1 Lubos Lunak 2006-04-10 16:17:40 UTC
Provide output from 'xmodmap -pm' and specify which keys exactly you press.
Comment 2 Sebastian Schubert 2006-04-10 22:08:07 UTC
sebschub@satux ~ $ xmodmap -pm
xmodmap:  up to 3 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 (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x71),  ISO_Level3_Shift (0x7c)


I hold the Windows key and press the Tab key and that only cycles between two windows on one desktop even though there are more windows open.  The standard Alt+Tab works without a problem.  In addition, there should not be any problem with the windows key in general as I set Windows+S for Konsole which works.
Comment 3 Sebastian Schubert 2006-06-03 19:07:52 UTC
The probleme still exists in KDE3.5.3 (Gentoo as well). Can I give you additional information?
Comment 4 Sebastian Schubert 2006-06-03 19:21:03 UTC
Some more strange things:

Setting 
Windows+Tab: Walk Through Windows (Reverse)
works as expected except that no small window is shown which shows all open windows.

Windows+Shift+Tab: Walk Through Windows
shows that little overview window, but one have to press eg Enter to select another window.
Comment 5 Rick Wagner 2006-06-09 06:01:46 UTC
What I have found is that Win+Tab just toggles between the current window, and the last window.  Setting back to Alt-Tab works as it is supposed to (brings up a pop-up, which steps through the windows).
Comment 6 Sebastian Schubert 2006-06-15 13:56:24 UTC
The bug is connected to
kcontrol > Desktop > Window Behaviour > Show window list while switching windows

If it is deactivated there is no problem.
Comment 7 Lubos Lunak 2006-06-28 14:59:23 UTC
*** Bug 120307 has been marked as a duplicate of this bug. ***
Comment 8 Antoni Grzymala 2006-07-04 19:18:17 UTC
If that's of any help to the developers, this bug appeared after switching from xorg-6.8.2 to xorg-7.0. It's there both in kde-3.5.2 and 3.5.3 (from what I've tested), so it must be related to some keyboard handling code in xorg.

My keyboard config is as follows:

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "CoreKeyboard"
        Option      "XkbModel" "pc105"
        #Option     "XkbOptions" "grp:toggle,grp_led:scroll"
        Option      "XkbVariant" ",winkeys"
        Option      "XkbLayout" "pl"
EndSection

The bug appears both in this configuration, and when I comment out the ",winkeys" option.

Antoni
Comment 9 Lubos Lunak 2006-08-10 12:17:24 UTC
Please provide xev output for keypress and keyrelease of the Win key.
Comment 10 James Newton 2006-08-10 15:27:53 UTC
I have the same problem. Here are the events for my Win key. This is on current Gentoo with Xorg 7.0 and KDE 3.5.2. Config/env bits:

KDE's config (control panel) has no settings at all for keyboard layout or XKB options.

Linux zim 2.6.12-gentoo-r10 #4 SMP Mon Oct 24 11:08:56 MDT 2005 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GNU/Linux

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc104"
        Option      "XkbLayout" "us"
EndSection

xmodmap:  up to 3 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 (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c)

KeyPress event, serial 31, synthetic NO, window 0x3c00001,
    root 0x3e, subw 0x0, time 4164388676, (98,26), root:(845,504),
    state 0x0, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x3c00001,
    root 0x3e, subw 0x0, time 4164388812, (98,26), root:(845,504),
    state 0x40, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

Comment 11 Tim RI 2006-11-07 20:25:25 UTC
Regarding comment #4. If bound to "Walk Through Desktop List", I get (almost) exactly the same behaviour, but this time for desktop walking (notice the switched keys for reverse walking).

So:

Windows+Tab: "Walk Through Desktop List" works as expected except that no small window is shown which shows all desktops.
 
Windows+Shift+Tab: "Walk Through Desktop List (Reverse)" shows that little overview window, but one has to press a key (any key) to select another desktop
 
Comment 12 Tim RI 2006-11-07 20:50:42 UTC
Sorry, forgot something in comment #11:

It is not just the win+tab key combination that has this problem. I tried with win+Y and it behaves the same as win+tab. Also, pressing the left or right win key makes no difference.

I do not use gentoo, instead I have Kubuntu Dapper Drake + KDE 3.5.5 (from kubuntu.org).

Here is the output of xev when pressing and releasing the windows key:

KeyPress event, serial 28, synthetic NO, window 0x3000001,
    root 0x47, subw 0x0, time 3287559489, (166,-9), root:(170,16),
    state 0x0, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x3000001,
    root 0x47, subw 0x0, time 3287559553, (166,-9), root:(170,16),
    state 0x40, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes:

By the way: I like KDE a LOT, thanks!

Tim

PS: At the risk of sending someone on a wild goose chase: Could this bug be related to the problems Aaron Seigo (namedropping! whooo!) encountered when he tried to make the windows key activate the K Menu (seeing as it is a modifier, he had to "kludge it", eventually ripping out the code iirc).
Comment 13 Magnus Holmgren 2006-11-19 17:33:11 UTC
I had exactly the same `xmodmap -pm` output as comment #2, and exactly the same behaviour. Interesting observation: On the "Modifier key" or "Selector key" tab (I have a Swedish locale, let's just say it's the third tab), there are no keys listed for mod4! The rest of the modifier list match the xmodmap output though, except that modifier keys with the same name but different ID numbers are only listed once.

I then went on trying some Alt/Win XKB options: altwin:hyper_win, left_meta_win, super_win. Win+Tab then stopped working completely, but I could still set it in the Shortcut dialog. I then tried altwin:alt_super_win (the description of which is mistranslated in Swedish, btw), and now it works! (And RWin as Compose works too.) However, xmodmap -pm gives the following line:

mod4        Super_L (0x73),  Super_R (0x75),  Super_L (0x7f),  Hyper_L (0x80),  Meta_L (0x9c)

and on the "third tab", Super_L and Super_R are listed, there are five key columns instead of three, the last three empty.
Comment 14 Magnus Holmgren 2006-11-19 18:05:45 UTC
Unfortunately, the altwin:alt_super_win changes the menu key from Menu to Super_R. The only thing that was actually necessary was

-mod4        Super_L (0x7f),  Hyper_L (0x80)
+mod4        Super_L (0x7f),  Hyper_L (0x80),  Super_L (0x73)

i.e.

xmodmap -e "add mod4 = Super_L"
Comment 15 Tim RI 2006-11-19 18:14:18 UTC
Hi Magnus,

I can confirm that your fix (in comment #14) :

xmodmap -e "add mod4 = Super_L"

works for me too.

Thanks!
Comment 16 Magnus Holmgren 2006-11-19 18:32:36 UTC
This can possibly be regarded as a bug in the XKB keymaps then, rather than a bug in kwin.
Comment 17 Magnus Holmgren 2006-11-19 18:46:26 UTC
But wait, the altwin:super_win option works even better than altwin:alt_super_win. Now the Menu key stays. I never tried that, since it says "(default)".
Comment 18 Lubos Lunak 2007-01-24 14:19:50 UTC

*** This bug has been marked as a duplicate of 140023 ***