hyprwm / Hyprland

Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
17.88k stars 752 forks source link

keybinds: fix mouse pass #6652

Closed Trimutex closed 3 days ago

Trimutex commented 5 days ago

Describe your PR, what does it fix/add?

Fixes mouse pass not refocusing active Wayland surface when passing to XWayland surface.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

Couldn't find any reason for not using last surface for the mouse in old commits. Maybe I missed something I don't know about? Doesn't introduce any bugs from my testing.

Is it ready for merging, or does it need work?

Ready for merging

vaxerski commented 4 days ago

the focus can be different. Probably better to track both at beginning. See g_pSeatManager->state