niri icon indicating copy to clipboard operation
niri copied to clipboard

warp-mouse-to-focus doesn't work when focus is set by wlrctl

Open Nairou opened this issue 1 month ago • 5 comments

I have warp-mouse-to-focus enabled, which works great when using niri's keybindings to switch between windows and monitors.

However, I've also started experimenting with using wlrctl to focus certain windows, since I can script it and launch the given program if the window isn't open.

Which works great, except that I've noticed the mouse never moves to the window that receives focus in this way. This is especially noticeable when the focused window is on a secondary monitor, and the mouse remains on the primary monitor, requiring an extra step to move the mouse to the focused window without triggering scrolling.

I don't know if this is a wlrctl issue, or a "focus wasn't set by niri" issue, but figured it was worth mentioning.

System Information

  • niri version: niri 0.1.6 (unknown commit)
  • Distro: NixOS
  • GPU: AMD RX 6800 XT
  • CPU: Intel i7-8700K

Nairou avatar May 30 '24 01:05 Nairou