Skip to content

windowrule workspace & binds:workspace_back_and_forth #3074

Description

@ElChurros

Hyprland Version

Hyprland, built from branch main at commit 63b2189 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

  • set binds:workspace_back_and_forth to true
  • set a windowrule assigning a window to a workspace without the silent option (e.g. windowrulev2 = workspace 3, class:^(kitty)$
  • go to workspace 2
  • go to workspace 3
  • open a new kitty window

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleNot much going on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions