-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse hover on i3bar causes automatic workspace switching to first workspace #34
Comments
Hi @mksafavi, thanks a ton for the detailed issue! Appreciate all the details and the reproduction steps. I'll have a look this weekend. |
Ok I've had a look and I'm unable to reproduce. |
I'll try the develop branch on the weekend. Did you try it with two monitors? I tried it with a single monitor and I couldn't reproduce it with either. I feel like it's a niche dual monitor problem that would be really hard to find. Thanks again 👍 |
Yes I did try with multiple monitors, and was unable to reproduce. Did you get a chance to try the dev branch? |
Hi. |
hmm, yeah give a clean config a try. |
Hi again, did you ever get a chance to try a clean config? I suspect the issue might be with the i3 option |
Just letting you know I was able to reproduce some odd behavior when moving windows between monitors, looking into it. |
Hi
Turning
good to hear that. 👍 |
I have the same/similar issue with 2 monitors. Randomly when moving or closing any window the active workspace can change. |
@roosta any updates on this? do you think this may be an issue with i3's API? |
Hi @Ali-Flt, I've tried, I refactored the whole app to try to get to the bottom of it, but I simply couldn't find a solution that worked. I'm not sure if its an i3 API issue or not, but IIRC i was able to reproduce the issue using i3-ipc. That doesn't necessarily mean anything, could still be an issue with i3wsr. I was able to narrow it down a bit though, maybe I'll have a look again later, see if I can get any further |
@roosta thanks for the update. I created an issue in i3's repo about this as well: i3/i3#5924 |
Has anyone been able to capture a log of this? I can give it a go next week as I see this almost daily. |
i3wsr only logs errors, you'll have to modify the source to see the actual IPC commands. I might consider adding a verbose logging option, but for now you can print here: Lines 252 to 255 in f788100
Add this: dbg!(&command) |
Fixes issue with multi-monitor dragging would cause the workspace to switch unexpectedly, possible fix for #34, but the reported issue is a bit different than what I was able to reproduce. Focus on the workspace about to be renamed before dispatching rename commands ensures that the rename operation has a clear, unambiguous target. refs: #34 i3/i3#5924
I made some progress on this issue and I think it might possibly be fixed here. Please confirm by checking out the develop branch and running from source. Make sure to close any running instance of i3wsr before starting the development version. |
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:
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
open new window in workspace 8 that changes its name.
move mouse from bottom monitor to top and bottom again. workspace switchs to 7
clip showing the same procedure:
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
andclose
, I had to check if the names changed and only rename those workspaces. which again made the bug trigger way less.The text was updated successfully, but these errors were encountered: