Skip to content
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

[Bug] In a two monitor setup, windows in main monitor get moved to a new workspace in secondary monitor after lock/sleep and unlock/wakeup #907

Open
sodiumnitrate opened this issue Jan 8, 2025 · 3 comments
Labels
type: bug Something isn't working

Comments

@sodiumnitrate
Copy link

Describe the bug

I have two monitors, and one workspace each. 1 on monitor 1 (defined as main display in windows settings), 2 on monitor 2. If I have applications open on both workspaces, and then the screens shut down either (a) because I do win->power-> lock, or (b) screen is turned off due to time limit set in system > power, upon turning the screens back on, the following happens:

  • monitor 1 shows a new empty workspace called 3, which did not exist before
  • monitor 2 shows 2 (active) with an option to show 1, which has the windows that were displayed on monitor 1 previously

I know this is a very specific scenario, but I'm assuming there are lots of people who daily drive more than one monitor using glazewm. I would greatly appreciate if someone could at least suggest a workaround.

Reproduction

  • Having two monitors, with monitor 1 set as main in windows settings arrange windows such that: workspace 1 on main with tiled windows & workspace 2 on secondary with tiled windows
  • Win -> Power -> Lock and wait for displays to shut down
  • Hit a keyboard key to wake up system and login

Stack trace or error logs (if applicable)

No response

Version number

3.5.0.0

@sodiumnitrate sodiumnitrate added the type: bug Something isn't working label Jan 8, 2025
@github-project-automation github-project-automation bot moved this to 📬 Needs triage in glazewm Jan 8, 2025
@xh1lr8-alt
Copy link

I have this issue as well, it is particularly egregious when it happens to programs where I need to manually save things.

@glanham-jr
Copy link

This likely relates to the following bug: #318

I also made a feature request to fix this issue: #896

@bartdorsey
Copy link

This also happens to me, I have three monitors, and often the workspaces will end up on the wrong monitor after waking the machine up from sleep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: 📬 Needs triage
Development

No branches or pull requests

4 participants