mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[FEAT]: Handle multiple monitors being plugged / unplugged #136
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @storvik on GitHub (Sep 4, 2022).
First of all, thank you for this amazing piece of software. It has helped a lot when trying to transition from Linux to Windows.
Is your feature request related to a problem? Please describe.
Often when I get back to my computer after taking a break all windows have moved to the main monitor. This is an issue in Windows where it disables the second monitor. When this happens it seems like windows that have moved are no longer handled by komorebi.
Describe the solution you'd like
One of these solutions would solve the problem:
Not sure if any of the suggested solutions will work as it seems like komorebi does not handle windows that have moved. Usually I have to move windows around, minimize and maximize them etc in order to make komorebi take control of them again.
@maxbane commented on GitHub (Oct 17, 2022):
Hey @storvik, you might be interested in my workaround here.
Edit: It doesn't handle restoring of window positions, but will at least prevent windows from becoming stranded and unmanaged by Komorebi. Maybe it would be possible to elaborate on my hack to save and restore layouts in response to
WM_DISPLAYCHANGEevents, getting closer to what you want.@LGUG2Z commented on GitHub (Jan 23, 2025):
This is now largely handled with display index preferences and state caching