hyprwm / Hyprland

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

windowrule workspace & binds:workspace_back_and_forth #3074

Open ElChurros opened 1 year ago

ElChurros commented 1 year ago

Hyprland Version

Hyprland, built from branch main at commit 63b2189ce81f08ca77894f50e3d484902283189a dirty (xdgshell: damage old popup coords after a reposition). Tag: v0.28.0-75-g63b2189c flags: (if any)

Bug or Regression?

Bug

Description

I'm using binds:workspace_back_and_forth = true. Assigning a window to a specific workspace using for example windowrulev2 = workspace 3, class:^(kitty)$ and opening this application from the workspace it's assigned to (in this example opening kitty from workspace 3) opens the app on the previously visited workspace. Setting binds:workspace_back_and_forth to false or adding the silent option to the workspace assignment windowrule stops this behavior.

How to reproduce

Steps

What happens

Kitty opens up on workspace 2 and Hyprland automatically navigates to workspace 2, despite kitty being assigned to workspace 3

What should happen

We're already on workspace 3. Kitty should open up on current workspace and Hyprland should stay on current workspace

Crash reports, logs, images, videos

No response

vaxerski commented 1 year ago

worth noting that you probably renamed the workspace.

patch.txt

try this.

ElChurros commented 1 year ago

I have indeed renamed my workspaces using https://github.com/hyprland-community/hyprland-autoname-workspaces. I installed Hyprland with the hyprland-git package. Should I switch to manual install to apply this patch ? Or is there a way to apply it on hyprland-git ?

vaxerski commented 1 year ago

you will need to manually clone hyprland, apply the patch and manually install

izmyname commented 3 weeks ago

Bump. Is this actual?