Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppord on-demand layer-shell keyboard mode #308

Open
Olekoop opened this issue Apr 23, 2024 · 2 comments
Open

Suppord on-demand layer-shell keyboard mode #308

Olekoop opened this issue Apr 23, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Olekoop
Copy link

Olekoop commented Apr 23, 2024

I am trying to use xfce4-panel 4.19.3 as a bar and I am having issues with applications not responding to keyboard inputs.
Key bindings in niri work just fine and mouse input works on both niri and programs (chromium at least).
When trying to diagnose the problem I ran a bash loop to check current focused window and discovered that when xfce4-panel is running "niri msg focused-window" returns no window.
However the border around the program is shown and it can move between windows.
It only happens when the bar is on the same monitor as the programs.
On my second monitor (where bar is not present) the programs respond to keyboard inputs. The windows focus normally.
When the bar is added to that monitor, the issue occurs. When the bar is removed, the problem disappears.
This issue doesn't happen on sway. Applications respond normally.

System Information

  • niri version: niri 0.1.5 (9f692d1)
  • GPU: AMD RX 5700XT
  • CPU: AMD Ryzen 5 3600
@Olekoop Olekoop added the bug Something isn't working label Apr 23, 2024
@YaLTeR
Copy link
Owner

YaLTeR commented Apr 24, 2024

Hey, looks like it's using on-demand layer-shell keyboard interactivity, which niri doesn't deal with yet.

@YaLTeR YaLTeR changed the title niri cannot focus any windows when xfce4-panel is running Suppord on-demand layer-shell keyboard mode Apr 24, 2024
@YaLTeR YaLTeR added enhancement New feature or request and removed bug Something isn't working labels Apr 24, 2024
YaLTeR added a commit that referenced this issue Apr 25, 2024
Workaround until we properly support on-demand.

See: #308
@YaLTeR
Copy link
Owner

YaLTeR commented Apr 25, 2024

Pushed a workaround that avoids giving keyboard focus to on-demand layer surfaces, should fix this until proper support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants