Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mouse hover on i3bar causes automatic workspace switching to first workspace #34

@mksafavi

Description

@mksafavi

Description:

when i3wsr is running, if you hover mouse over i3bar (any window with type of _NET_WM_WINDOW_TYPE_DOCK) under certain situations it changes the workspace to the first one. It happens when the currently focused workspace is renamed.
personally I experienced it with dual monitor setup but I've heard it's also happens with a single monitor(needs verification)
I also replicated this issue with python i3ipc and it had the same behavior as i3wsr. So I think the problem might not be from i3wsr itself but given that dynamically renaming workspaces is not an i3 feature, I thought I should discuss this issue here first.

steps to reproduce:

  • step 1:
    On the top monitor workspaces 1 and 2 are open. workspace 2 is focused
    On the bottom monitor workspaces 7 and 8 are open. workspace 8 is focused
    image
  • step 2:
    open new window in workspace 8 that changes its name.
    image
  • step 3:
    move mouse from bottom monitor to top and bottom again. workspace switchs to 7
    image

clip showing the same procedure:
issue.webm

further information:

While investigating the source of the bug, I found some workarounds to reduce the occurrence of this issue.
normally you would traverse the workspace tree and renamed all the workspaces.
To make it happen less often, I changed it so that it only renamed the effected workspaces.
for title new events, it is possible to get the workspace name and only rename that workspace.
for move and close, I had to check if the names changed and only rename those workspaces. which again made the bug trigger way less.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions