! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Hotkeys in Xfce don't work when any type of right-click menu is open
Status:
RESOLVED: WONTFIX
Product:
Gtk-xfce-engine
Component:
General

Comments

Description Heart Of A Lion 2016-04-14 16:46:29 CEST
When you open a right-click menu in Xfce, for example in Thunar or anywhere else in Xfce, then hotkeys no longer work (while the right-click menu is open).

It causes issues when wanting to take a screenshot using a hotkey when a right-click menu is open.

Almost any type of right-click menu in Xfce seems to cause this behavior.
Comment 1 Olivier Fourdan editbugs 2016-04-14 16:49:53 CEST
Oh, that's absolutely normal and inherent to X11 design, menu are popup window (aka override redirect windows) and have an active grab on the keyboard, therefore the apps that manage keyboard shortcuts (being either xfce-settigns or xfwm4) cannot receive the key events.

Not something we can fix at the level of xfce, at least as long as it's using X11.
Comment 2 Heart Of A Lion 2016-04-14 16:51:51 CEST
Would it be possible for X11 to fix this issue upstream?
Comment 3 Olivier Fourdan editbugs 2016-04-14 16:59:46 CEST
(In reply to Heart Of A Lion from comment #2)
> Would it be possible for X11 to fix this issue upstream?

No, it's inherent to X11 and its input device grabbing mechanism, basically, any X11 desktops have the same issue.

And it gets even worse than keyboard shortcut, for example, when a menu is opened, the screen-locker cannot grab the keyboard either, means that if you leave your computer unattended with a menu opened, the screen lock won't be able to activate.

Wayland doesn't have that problem, but it's an entirely different protocol from X (going off topic for bugzilla here, which is not intended for such general discussion, so I'll stop there)

For your specific problem with screenshots, I would advise to use delayed snapshots, either from the command line (something like sleep 5; screenshot) or else The Gimp has that feature as well (and probably others).

Bug #12546

Reported by:
Heart Of A Lion
Reported on: 2016-04-14
Last modified on: 2016-04-14

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Version:
Unspecified

Attachments

Additional information