[Bug 1244090] Re: Pressing any global keyboard shortcut causes temporary loss of focus
I have a patch, taken from SO. Patch is attached for package xorg-server. After building with it, you need to install xserver-xorg-core-*.deb package generated. I have attached the .deb too. ** Attachment added: "AMD64 .deb included" https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1244090/+attachment/5140329/+files/patches.zip -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/1244090 Title: Pressing any global keyboard shortcut causes temporary loss of focus To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-settings-daemon/+bug/1244090/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1244090] Re: Pressing any global keyboard shortcut causes temporary loss of focus
I have confirmed that the above patch works by applying it and running xev. I then pressed META+SPACE and the keyboard layout changed without any output from xev. ** Changed in: gnome-shell (Ubuntu) Status: Confirmed => In Progress -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/1244090 Title: Pressing any global keyboard shortcut causes temporary loss of focus To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-settings-daemon/+bug/1244090/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1722353] Re: Screen blanking and/or screen lock crashes gnome-shell user session on wayland - Ubuntu 17.10 beta
*** This bug is a duplicate of bug 1717170 *** https://bugs.launchpad.net/bugs/1717170 ** Tags added: bionic -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to mutter in Ubuntu. https://bugs.launchpad.net/bugs/1722353 Title: Screen blanking and/or screen lock crashes gnome-shell user session on wayland - Ubuntu 17.10 beta To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1722353/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1244090] Re: Pressing any global keyboard shortcut causes temporary loss of focus
No, the problem is in the grabbing code: https://github.com/GNOME/gnome-shell/blob/2997e4950ba31747b5e3260c306456b0de413421/js/misc/keyboardManager.js#L37 https://github.com/GNOME/mutter/blob/49f029571cc425a878e520310a8db616fa5c4b70/src/core/keybindings.c#L1803 This grabs the keyboard. >From https://www.x.org/wiki/Development/Documentation/GrabProcessing : 'There can only be one grab on a device ...' See the xev output below, of me pressing META+SPACE to change layout: FocusOut event, serial 34, synthetic NO, window 0x321, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 34, synthetic NO, window 0x321, mode NotifyUngrab, detail NotifyNonlinear KeymapNotify event, serial 34, synthetic NO, window 0x0, keys: 70 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 FocusOut event, serial 34, synthetic NO, window 0x321, mode NotifyGrab, detail NotifyNonlinear FocusIn event, serial 34, synthetic NO, window 0x321, mode NotifyUngrab, detail NotifyNonlinear KeymapNotify event, serial 34, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 The issue is that it is losing grab, as the FocusOut event shows the mode is notifyGrab. Or at least that is my interpretation. I don't know why the grab and ungrab events are the wrong way round. ** Changed in: gnome-shell (Ubuntu) Assignee: (unassigned) => Penn Mackintosh (penn-mackintosh) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/1244090 Title: Pressing any global keyboard shortcut causes temporary loss of focus To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-settings-daemon/+bug/1244090/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1244090] Re: Pressing any global keyboard shortcut causes temporary loss of focus
Does it seem like this line could be the problem? https://github.com/GNOME/gnome- shell/blob/3b1330880fbaa1c1f98c912d6d41fe14af18e3eb/js/ui/status/keyboard.js#L382 >From here (https://github.com/GNOME/gnome- shell/blob/2997e4950ba31747b5e3260c306456b0de413421/js/misc/keyboardManager.js#L30) it seems like this will ungrab the keyboard under some circumstances. BTW this is still an issue in bionic as of today. I have never read the ubuntu/gnome sources before, so please forgive if I have misinterpreted something. Also, thanks to incredible-angst for pointing out the DBUS method, which is how I found these lines. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/1244090 Title: Pressing any global keyboard shortcut causes temporary loss of focus To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-settings-daemon/+bug/1244090/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs