pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
487 stars 89 forks source link

Sometimes focus follows cursor does not switch focus between monitors #833

Open BrodieRobertson opened 2 months ago

BrodieRobertson commented 2 months ago

I can't seem to find consistent replication conditions but sometimes when you try to switch focus between monitors using focus follows cursor the focus never happens on the monitor you move the cursor to.

It seems more common for it to happen when you click on a window on the first monitor and then move to the second monitor

https://github.com/user-attachments/assets/8191e8a4-411e-43f1-890b-4ca4b3fcba23

nevdelap commented 2 months ago

Not certain it is the same problem, but these steps to reproduce more or less match what the title of your issue describes.

I've installed cosmic-comp-git and done...

echo true > ~/.config/cosmic/com.system76.CosmicComp/v1/focus_follows_cursor
echo 100 > ~/.config/cosmic/com.system76.CosmicComp/v1/focus_follows_cursor_delay

(My usual screen recorder doesn't work with Wayland and trying to show it with my phone didn't seem too good. If you can recommend a screen recorder I can show you - if my description doesn't make sense. :wink: )

Drakulix commented 2 months ago

Should be fixed by https://github.com/pop-os/cosmic-comp/commit/0d048b1a8e65a48692027e619c52efc56894e568