glazewm icon indicating copy to clipboard operation
glazewm copied to clipboard

[Bug] Windows and workspace get confused after awaking from hibernating on Windows 10

Open shenfan19 opened this issue 1 year ago • 1 comments

Describe the bug

After awaking my computer from hibernating with 3 workspaces on 2 monitors, the workspaces and windows get shuffled and confused:

  • The display of zebar shows that workspace 1 on monitor 1, and workspace 2,3 on monitor 2.

  • When I trying to move or focus windows with keybindings like 'alt+1/2/3' or 'alt+shift+1/2/3', the result doesn't happen as I expected --- It looks like workspace 1,2 on monitor 1, and workspace 3 on monitor 2, when the zebar display remains no change.

  • When I try to move workspace with keybindngs, the workspaces and windows get more confused that I can not describe.

Thanks!

Reproduction

No response

Stack trace or error logs (if applicable)

No response

Version number

3.1.1

shenfan19 avatar Sep 03 '24 01:09 shenfan19

I sometimes encounter the same on Windows 11 after Sleep mode. Jumping between workspaces and moving worksapces between monitors do not behave as expected; sometimes GlazeWM put windows from Worksapce X on top of windows of Workspace Y (without hiding them first) and that causes issues with focus and with window movement since sometimes the old windows reappear on the wrong workspace.

Zebar always need refreshing after exiting Sleep mode, but that is a small issue.

MoaidHathot avatar Sep 04 '24 19:09 MoaidHathot

#703 might be related to this.

Entharia avatar Sep 09 '24 06:09 Entharia

#703 might be related to this.

Thanks, it does help a bit. After awaken, the windows stay in the right workspace now. Unfortunately, the icons on zebar doesn't change. When I use the mouse click or keybindings, they keep the same. Perhaps, it's more an issue in zebar, not in glazewm?

shenfan19 avatar Sep 09 '24 06:09 shenfan19

@silence19, yes, that is a Zebar issue. Right click the Zebar Bar and click Refresh or restart it via a script. We can theoretically automate this as well.

MoaidHathot avatar Sep 09 '24 07:09 MoaidHathot

@silence19, yes, that is a Zebar issue. Right click the Zebar Bar and click Refresh or restart it via a script. We can theoretically automate this as well.

Thanks, I'll close this and just bless for zebar :-)

shenfan19 avatar Sep 09 '24 07:09 shenfan19