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

            Bug ID: 518060
           Summary: wlr-layer-shell ON_DEMAND keyboard interactivity
                    always steals keyboard focus
    Classification: Plasma
           Product: kwin
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: input
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Hi.

I'm the developer of SwayNotificationCenter which uses the wlr-layer-shell-v1
wayland protocol to display notifications. I've since noticed that setting the
"popup" notifications surface keyboard interactivity mode to `ON_DEMAND`
behaves differently on each compositor. This is needed to allow for input
fields within each notification.

So this is currently how it works on different compositors:

- Sway: Never steals focus unless the EXCLUSIVE mode is set
- Niri, Hyprland, Labwc: ON_DEMAND only steals the focus if the surface is
mapped with said mode, not when toggling between NONE and ON_DEMAND while
mapped
- KDE: Currently to my understanding
(https://github.com/ErikReider/SwayNotificationCenter/pull/716#issuecomment-4090384913),
KDE will always steal the users input focus when a surface switches or gets
mapped with ON_DEMAND. But this isn't the case for the built-in plasma
notifications right?

So the solution that I've implemented is to set ON_DEMAND after the surface
gets mapped, but this doesn't work in KDE currently...

I've opened an issue in the wlr-protocols repository
(https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/issues/141) requesting
to adjust the protocol documentation, clarifying how input "stealing" should
behave as it's a bit unclear.

Here are a few relevant links:
- https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/issues/141
- https://codeberg.org/river/river/issues/1111
- https://github.com/ErikReider/SwayNotificationCenter/issues/455
- https://github.com/niri-wm/niri/issues/3050
- https://github.com/niri-wm/niri/issues/641
- https://github.com/hyprwm/Hyprland/discussions/12663

Any thoughts?

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

Reply via email to