TimUntersberger / nog

A tiling window manager for Windows
MIT License
697 stars 20 forks source link

Fix: grid serialization failing on workspaces pinned to multiple moni… #199

Closed ramirezmike closed 3 years ago

ramirezmike commented 3 years ago

Fix: grid serialization failing on workspaces pinned to multiple monitors

ramirezmike commented 3 years ago

I resolved the issue where when loading from string it was assuming that the grids loaded would all be in order. Instead, I'm having it iterate over the displays and only loading the grids that are on each display.

Also noticed that if you attempt to switch to a monitor that doesn't exist nog crashes, so added a check there to prevent that.

Also addressed some warning messages.