https://bugs.kde.org/show_bug.cgi?id=401227

            Bug ID: 401227
           Summary: Global hotkey resets with each restart
           Product: kwin
           Version: 5.14.3
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: input
          Assignee: kwin-bugs-n...@kde.org
          Reporter: raullaas...@gmail.com
  Target Milestone: ---

SUMMARY

KWin seems to steal focus when the key combination Alt+= is pressed, but I
can't figure out what it does exactly. This is a problem for me because I
typically use this hotkey in Emacs to do a specific task. However, since KWin
steals the focus every time Alt+= is pressed, I can't use it in Emacs.

STEPS TO REPRODUCE

Open xev and press Alt+=. The following is a commented output from my machine:

# Alt pressed:

KeyPress event, serial 40, synthetic NO, window 0x5800001,
    root 0x1c9, subw 0x0, time 3737607, (61,104), root:(1461,133),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

# = pressed:

FocusOut event, serial 40, synthetic NO, window 0x5800001,
    mode NotifyGrab, detail NotifyAncestor

FocusOut event, serial 40, synthetic NO, window 0x5800001,
    mode NotifyUngrab, detail NotifyPointer

FocusIn event, serial 40, synthetic NO, window 0x5800001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 40, synthetic NO, window 0x0,
    keys:  4294967241 0   32  0   0   0   0   0   1   0   0   0   0   0   0   0 
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

# = released:

KeyRelease event, serial 40, synthetic NO, window 0x5800001,
    root 0x1c9, subw 0x0, time 3738919, (61,104), root:(1461,133),
    state 0x8, keycode 21 (keysym 0x3d, equal), same_screen YES,
    XLookupString gives 1 bytes: (3d) "="
    XFilterEvent returns: False

# Alt released:

KeyRelease event, serial 40, synthetic NO, window 0x5800001,
    root 0x1c9, subw 0x0, time 3739829, (61,104), root:(1461,133),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

You can see things like FocusIn and FocusOut, which means that a KDE process is
invoked by the key combination. I believe this is related to KWin because when
I close KWin,

    killall kwin_x11

the shortcut becomes available in Emacs and other applications (it's not
intercepted by KWin). If I then start KWin,

    kwin_x11 &

the shortcut becomes again bound to a KWin and is not available by other
applications.

I went through all the global and standard shortcuts but nothing seems to be
bound to Alt+=. The only way I can fix this is by assigning Alt+= to some
action and then removing it which frees up the key combination. However, after
a restart Alt+= is again bound to some unknown action.

EXPECTED RESULT

When this shortcut is disabled, it should stay disabled even after KWin
restarts.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.14.3
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION

This issue emerged about week ago. First reported here:
https://forum.kde.org/viewtopic.php?f=66&t=155962. A similar issue reported
here: https://forum.kde.org/viewtopic.php?f=63&t=155960.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to