Bug 381447 - Kickoff opens with Super_L (left win) even when using "Left Alt as Ctrl, Left Ctrl as Win, Left Win as Alt"
Summary: Kickoff opens with Super_L (left win) even when using "Left Alt as Ctrl, Left...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: input (show other bugs)
Version: 5.10.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 383056 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-06-20 15:31 UTC by Mario Aichinger
Modified: 2019-03-07 08:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
mgraesslin: Wayland-
mgraesslin: X11+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Aichinger 2017-06-20 15:31:42 UTC
This is a regression bug.

Definitions:

   CTRL := The physical left control key (on the keyboard)
   ALT  := The physical left alt key (on the keyboard)
   WIN  := The physical left win key (on the keyboard)


   Control_L := The event for the left control key (X-Server)
   Alt_L     := The event for the left alt key (X-Server)
   Super_L   := The event for the left super key (X-Server)




I'm using a standard laptop keyboard. With the Keyboard model set to ("System Settings" -> "Input Devices" -> Keyboard -> Hardware): "Generic | Generic 101-key PC".


Setting the scene:

   Under "System Settings" -> "Input Devices" -> Keyboard -> Advanced nothing is checked.

   Running xev gives me the following key-event combinations:
      CTRL -> Control_L
      ALT -> Alt_L
      WIN -> Super_L

   The kickoff menu opens when I hit WIN.


Next steps
   
   Under "System Settings" -> "Input Devices" -> Keyboard -> Advanced -> "Ctrl position" check the "Left Alt as Ctrl, Left Ctrl as Win, Left Win as Alt"-box.

   Hit apply.
   
   Logout, reboot or do nothing.


What now happens

   Running xev gives me the following key-event combinations:
      CTRL -> Super_L
      ALT -> Control_L
      WIN -> Alt_L

   The kickoff menu STILL opens when I hit WIN and does not open when I hit CRTL 


How it worked in the past (probably plasmashell 5.9.x) and how it should work

   All key-event combinations were the same as of now.

   The kickoff menu was bound to the Super_L event and not to the WIN key
Comment 1 Martin Flöser 2017-07-11 16:45:48 UTC
This is not a regression. On X11 the modifier only shortcuts never supported advanced keyboard mappings.
Comment 2 Mario Aichinger 2017-07-12 15:56:40 UTC
That is strange!

I just (5 minutes ago) downgraded kwin and some other packages (plasma-desktop, plasma-integration, plasma-sdk, plasma-workspace, and plasma-nm just so stuff would not break) from 5.10.3 to 5.8.2 and now it works as I described it in the bug report. 

Just to clear things up I first downgraded the plasma stuff then tested it (it didn't work) and then kwin to make sure that kwin is the relevant part. I didn't change anything else.
Comment 3 Martin Flöser 2017-07-22 19:22:20 UTC
We had bugs in the implementation and it's quite likely that it worked for you as expected due to bugs breaking the feature.

But yeah, quite now we don't honor the actual xkb mapping on X11 at all.
Comment 4 Martin Flöser 2017-08-15 14:28:12 UTC
*** Bug 383056 has been marked as a duplicate of this bug. ***
Comment 5 Ural 2017-08-15 14:55:28 UTC
+1 after update it is very annoying. I hope it will be fixed next update and launcher will not open anymore on clicking super_l
Comment 6 Dmitry 2017-08-18 18:41:15 UTC
I have this problem too. I used to use <Win> key for keyboard layout switching for a long time, now it also opens the Kickoff. And this is very annoying.

Easiest workaround for me is to remove that goddamn launcher widget from panel, so it will not open every time <Win> key is pressed.
Comment 7 Mario Aichinger 2019-03-06 09:59:22 UTC
This issue seams to be fixed since 5.15.x. 

@Martin Flöser do you know if some one worked on this or is it just a glitch?

@Dmitry is it also fixed for you?
Comment 8 Martin Flöser 2019-03-06 16:15:50 UTC
Yes, there's https://cgit.kde.org/kwin.git/commit/plugins/platforms/x11?id=0f489c3521eb5f19459b4210911548237e0655b6

the commit could explain it.
Comment 9 Vlad Zahorodnii 2019-03-07 08:24:37 UTC
marking as worksforme per comment 7.