WayfireWM / wayfire

A modular and extensible wayland compositor
https://wayfire.org/
MIT License
2.42k stars 179 forks source link

[expo bug]: window loses focus in a certain condition #2520

Closed vdegenne closed 3 days ago

vdegenne commented 4 days ago

Describe the bug

The condition is very specific, when using <BTN_MIDDLE> (mouse) as the toggle event for zoom in/out of the expo and when one viewport that has no windows left had the focus. I made a video to demonstrate as it may be confusing:

https://github.com/user-attachments/assets/9a00b104-580c-4787-9123-417367aa66e9

To Reproduce Steps to reproduce the behavior:

  1. use middle mouse button for the expo toggle
  2. create a window on a viewport A (focus automatically)
  3. go in another viewport B and create another window
  4. go to viewport A the window should still be focus
  5. go to viewport B the window should still be focus
  6. destroy viewport B's window
  7. go back to viewport A, the window lost focus

Wayfire version 0.9.0-unknown (Oct 7 2024) branch unknown

vdegenne commented 3 days ago

Ok nevermind, in core options there is this setting:

image

I just needed to remove "BTN_MIDDLE" ther