hyprwm / Hypr

Hypr is a tiling window manager written in modern C++.
BSD 3-Clause "New" or "Revised" License
1.05k stars 32 forks source link

EWMH window activation workspace off by one #115

Closed bluelhf closed 1 year ago

bluelhf commented 1 year ago

Please describe the bug Using EWMH to activate a window results in switching to the wrong workspace (the workspace right after the desired one)

Steps to reproduce:

  1. Install wmctrl
  2. Open three terminal windows in three workspaces.
  3. Go to the third one, and list all windows using wmctrl -l
  4. Run wmctrl -ia <ID of window in workspace 1> to activate the window in workspace 1.
  5. Notice that Hypr switches to workspace 2 instead of workspace 1.
  6. Cry about it

Expected behavior Hypr should switch to the right workspace, the one with the window being activated.

Screenshots From the terminal in Workspace 3, the wmctrl -l command showing 3 windows in 3 workspaces the command to activate the window in workspace 1

and the result is, Application window in workspace 2, showcasing the failed workspace switch

Anything else?

hypr is cool :)

Log: N/A Coredump: N/A