Bug 396125 - Meta+Shift+2 and Meta+Shift+3 do not work anymore
Summary: Meta+Shift+2 and Meta+Shift+3 do not work anymore
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kglobalaccel
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 396189 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-07-03 12:19 UTC by Matthieu Gras
Modified: 2022-12-31 05:23 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Requested output (11.82 KB, text/plain)
2018-07-03 16:54 UTC, Matthieu Gras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Gras 2018-07-03 12:19:37 UTC
==========================

Version
=======
KWin version: 5.12.5
Qt Version: 5.10.1
Qt compile version: 5.10.1
XCB compile version: 1.13

Operation Mode: X11 only



Sometimes some shortcuts do not work although xinput is seeing the key presses.
Only the shortcuts Mod+Shift+2 and Mod+Shift+3 do not work. They should move the focused window to the Desktop 2,3. Logging out and back in always fixes the problem.
Comment 1 David Edmundson 2018-07-03 15:10:07 UTC
please include output of 

dbus-monitor
followed by pressing the relevant shortcut
Comment 2 Matthieu Gras 2018-07-03 15:16:26 UTC
(In reply to David Edmundson from comment #1)
> please include output of 
> 
> dbus-monitor
> followed by pressing the relevant shortcut

When the shortcut doesn't work dbus_monitor doesn't generate any output for the action, otherwise is generates:

signal time=1530630874.732729 sender=:1.58 -> destination=(null destination) serial=643 path=/component/kwin; interface=org.kde.kglobalaccel.Component; member=globalShortcutPressed
   string "kwin"
   string "Window to Desktop 2"
   int64 158181
Comment 3 Martin Flöser 2018-07-03 16:16:55 UTC
updating to unconfirmed as the requested information is required. Moving to kglobalaccel as it seems to be kglobalaccel not sending the dbus method.
Comment 4 David Edmundson 2018-07-03 16:28:27 UTC
@Matthieu

Can you run the following

kquitapp5 kglobalaccel
QT_LOGGING_RULES=kglobalaccel-runtime.debug=true kglobalaccel5   

and note all output.
Comment 5 Matthieu Gras 2018-07-03 16:37:54 UTC
(In reply to David Edmundson from comment #4)
> @Matthieu
> 
> Can you run the following
> 
> kquitapp5 kglobalaccel
> QT_LOGGING_RULES=kglobalaccel-runtime.debug=true kglobalaccel5   
> 
> and note all output.

Doesn't work because the problem disappears if I restart kglobalaccel5. Is it possible to launch the application is debug mode and redirect the output to a file?

Or maybe I should try to replace it by a wrapper script
Comment 6 Matthieu Gras 2018-07-03 16:54:40 UTC
Created attachment 113740 [details]
Requested output
Comment 7 Matthieu Gras 2018-07-03 21:42:55 UTC
(In reply to David Edmundson from comment #4)
> @Matthieu
> 
> Can you run the following
> 
> kquitapp5 kglobalaccel
> QT_LOGGING_RULES=kglobalaccel-runtime.debug=true kglobalaccel5   
> 
> and note all output.

This part in the file kglobalaccel_x11.cpp is causing the failure:

    xcb_keycode_t *keyCodes = xcb_key_symbols_get_keycode(m_keySymbols, keySymX);
    if (!keyCodes) {
        qCDebug(KGLOBALACCELD) << "returning false";
        return false;
    }
Comment 8 Nate Graham 2018-07-13 20:02:33 UTC
*** Bug 396189 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2018-07-13 20:04:42 UTC
Matthieu, would you be interested in producing a patch? Here's the documentation:

- https://community.kde.org/Get_Involved/development
- https://community.kde.org/Infrastructure/Phabricator
Comment 10 Matthieu Gras 2018-07-13 21:00:16 UTC
(In reply to Nate Graham from comment #9)
> Matthieu, would you be interested in producing a patch? Here's the
> documentation:
> 
> - https://community.kde.org/Get_Involved/development
> - https://community.kde.org/Infrastructure/Phabricator

I am not exactly sure what is causing the bug. xcb_key_symbols_get_keycode returns null the first time the application is started. If I restart kdeglobalaccel it returns a valid ptr. It might be a XCB bug.
Comment 11 Matthieu Gras 2018-07-13 21:03:46 UTC
Or maybe a race condition when kde plasma starts? The problem shows only up after a reboot.

"sleep 3; kquitapp5 kglobalaccel; kglobalaccel5" - this is my workaround
Comment 12 Nate Graham 2018-07-13 21:13:13 UTC
I wonder if this race condition is a result of our work to improve plasmashell's start times. :)
Comment 13 Uģis 2018-07-17 13:27:21 UTC
I have the same problem, but its about kwin effects shortcuts. I have to to restart kglobalaccel5 to make it recognize shortucs
Comment 14 Holger 2018-10-01 20:46:31 UTC
Is this bug reproduceable *without* autologin into the kde-session? Otherwise it might be a duplicate of bug 394684 ...
Comment 15 Uģis 2018-10-03 05:29:36 UTC
(In reply to Holger from comment #14)
> Is this bug reproduceable *without* autologin into the kde-session?
> Otherwise it might be a duplicate of bug 394684 ...

I start kde with startx from tty
Comment 16 Justin Zobel 2022-12-01 04:34:45 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 17 Bug Janitor Service 2022-12-16 05:13:31 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 18 Bug Janitor Service 2022-12-31 05:23:40 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!