Summary: | Wayland: Fullgrab-Alternative for Games (avoid global hotkeys to be annoying in-game) | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Dimitri Nüscheler <dimitri.nuescheler> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Dimitri Nüscheler
2013-08-15 05:53:30 UTC
With Wayland KWin is responsible for handling global shortcuts and applications are not able to grab the keyboard (security feature). Furthermore KWin supports a feature of blocking global shortcuts per window rule. This will also be available in Wayland. So a user can simply decide it for himself. This is the only possible solution and much better than asking the application whether it is important (of course it is, every app is important). I don't see anything to implement here or how exactly implementing this feature request -> RESOLVED WORKSFORME I didn't know KWin supports a feature of blocking global shortcuts per window, thanks. So building on that is probably the best idea, but in my opinion the current implementation of this feature is not fully satisfying my requirements, because I don't want to disable Ctrl+Alt+Esc and Alt+Tab, but all others Global Hotkeys for a certain window. Assume I have a game that freezes sometimes and also interferes with some global hotkeys. Then I'd like to ignore all global hotkeys but Alt+Tab and Ctrl+Alt+Esc. It's a feature of kglobalacceld, kwin just de/activates it depending on which client atm. has the input. With wayland things however change and kwin will actually have control depending on this rule. Regarding "good" and "bad" global shortcuts, I doubt there's such. Anything that intercepts action is really bad while a Legion of Imps is running upon you (because whatever it is: you're dead) The "solution" to this is usually the kernel shortcuts (ctrl+alt+F[n] for VTn) - which have the advance that its very established and thus not easily used anywhere. Other shortcuts are configurable (ctrl+alt+esc does nothing for me) and you cannot really prevent users from assigning ctrl+^ / ctrl+~ to "kill this window" ... Ctrl+Alt+F[n] is exactly what I do today (Today I have no choice, XGrabKeyboard forces me to do so anyway), but I was looking for a quicker way (such as Alt+Tab), because with Ctrl+Alt+F[n] I have to manage a second session (or log in to one) and type a set of commands to get the window game window killed or moved to background and that's cumbersome. It's perfectly fine if I can define myself what's "bad" and "good" shortcuts. I'd be completely happy if I could just define a whitelist of exceptions at the "ignore global hotkeys" function. I don't need the system to know what's interfering (bad) and what not (good). I can know it for it. |