hyprwm / hyprland-plugins

Official plugins for Hyprland
BSD 3-Clause "New" or "Revised" License
462 stars 43 forks source link

When selecting the same workspace with Hyprexpo, Hyprland is unable to focus a window with the mouse #138

Open Aqa-Ib opened 2 months ago

Aqa-Ib commented 2 months ago

Steps to reproduce:

With two monitors:

  1. Put a window in each monitor's workspace.
  2. Run hyprexpo in one monitor and select the workspace that was active in the monitor before running hyprexpo.
  3. Use your mouse to interact with the other monitor's window. It won't respond to mouse input until you change the workspace being showed.

With one monitor:

  1. Create multiple windows in the active workspace.
  2. Run hyprexpo and select the workspace that was active before running hyprexpo.
  3. Use your mouse to interact with unactive windows. They won't respond to mouse input until you change the workspace being showed.

My hyprexpo config is this:

  plugin {
      hyprexpo {
          columns = 3
          gap_size = 5
          bg_col = rgb(111111)
          workspace_method = first 1 # [center/first] [workspace] e.g. first 1 or center m+1
          enable_gesture = true # laptop touchpad, 4 fingers
          gesture_distance = 300 # how far is the "max"
          gesture_positive = true # positive = swipe down. Negative = swipe up.
      }
  }

Thanks for your attention.

vaxerski commented 2 months ago

how can you select a workspace on a different monitor?

Aqa-Ib commented 2 months ago

how can you select a workspace on a different monitor?

I can't. I guess that my explanation was unclear.

Try to reproduce with only one monitor to see what I mean:

With one monitor:

  1. Create multiple windows in the active workspace.
  2. Run hyprexpo and select the workspace that was active before running hyprexpo.
  3. Use your mouse to interact with unactive windows. They won't respond to mouse input until you change the workspace being showed.
matt1432 commented 2 months ago

It works for me. Can you record your screen to show us the issue?

Aqa-Ib commented 2 months ago

https://github.com/hyprwm/hyprland-plugins/assets/16420574/01422346-b9a0-4124-bd94-e4b6212a9846

Notice that after using hyprexpo, the calculator does not interact with the mouse anymore because the focus was on the terminal before using hyprexpo, and Hyprland couldn't change the focus with the mouse anymore.

Aqa-Ib commented 2 months ago

The actual issue here is that hyprland loses the ability to focus windows with the mouse after reproducing.

Aqa-Ib commented 2 months ago

This bug also appears when using https://github.com/KZDKM/Hyprspace