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

            Bug ID: 488060
           Summary: Focus stealing prevention window rules are not
                    enforced for the native Wayland apps
    Classification: Plasma
           Product: kwin
           Version: 6.0.5
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: rules
          Assignee: kwin-bugs-n...@kde.org
          Reporter: f...@fedy.cz
                CC: isma...@gmail.com
  Target Milestone: ---

SUMMARY
When using the "Window rules" system the "Focus stealing prevention" setting is
not enforced for native Wayland windows even at the "Force->Extreme" level.
Seems to be working fine for the legacy X11 windows like XTerm.


STEPS TO REPRODUCE
1. Make sure you are running under a Wayland session
2. Make a window rule for a native Wayland application (like Alacritty)
3. In the rule set the "Focus stealing prevention" to "Force" & "Extreme"
4. Apply the rule
5. Follow the steps 2-4. this time for a legacy X11 application (like XTerm)

OBSERVED RESULT
When new Wayland window is created it get the focus (every time) no matter the
rules set.
X11 applications follow the window rules so (in the example above) new XTerm
windows don't steal the current focus.


EXPECTED RESULT
Being able to prevent focus stealing (or maybe more specifically: stealing
focus on window creation) even for native Wayland applications. Can supply many
use cases on request.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora release 40 (Forty)
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
- Tested that other parts of the rule are being applied (so the rule itself is
active)
- Using the "Focus follows mouse" windows activation policy by default, but
tested with "Click to focus" as well and no difference.

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

Reply via email to