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

            Bug ID: 439483
           Summary: Ability to give fake focus to window [feature request]
           Product: frameworks-kwindowsystem
           Version: 5.83.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwin-bugs-n...@kde.org
          Reporter: ash...@linuxcomp.ru
  Target Milestone: ---

It would be good possibility for kwin to lie to the window that it has a focus.

There are applications that do some logic based on focus flag. For example,
games may pause when minimized. There are cases when you want the window to
believe that it has focus while in reality give the focus to another window.
One example is when you want to switch to web browser to learn something, and
be able to control unfocused game via gamepad. Other examples may be when game
pauses when minimized, but do not allows you to skip credits. Or when the
application do some "conveniences" such as hiding its dialog windows when not
in focus, but you do not want that behavior.

For mode detailed explanation of examples please see this question:
https://unix.stackexchange.com/questions/650156/trick-a-window-that-it-has-focus-in-kde

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
In the window rules it could appear as option like "fake focus" or "always
programatically focused".

Also it would be nice to specify input behavior when in fake focus. For
example, disable keyboard input because it looks unnecessary for my examples
(but who knows, someone may want it, to do simultaneous input to several
windows), but enable gamepad input (to effectively force its input to game,
despite game is unfocused).

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

Reply via email to