mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1143] [MERGED] fix(wm): maximized floating windows move across monitors without disappearing #1221
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?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1143
Author: @alex-ds13
Created: 11/25/2024
Status: ✅ Merged
Merged: 11/26/2024
Merged by: @LGUG2Z
Base:
master← Head:fix/move-maximized-floating📝 Commits (1)
1b49860fix(wm): maximized floating windows move across monitors without disappearing📊 Changes
1 file changed (+41 additions, -1 deletions)
View changed files
📝
komorebi/src/window.rs(+41 -1)📄 Description
When moving maximized floating windows across monitors they were magically disappearing! The window would be on the correct place, with the correct coordinates and size, its styles wouldn't change it would still have the
VISIBLEstyle, however the window was invisible. If we used the system move to try to move it sometimes we would be able to see a bar on the top of the monitor and if we moved the window with the keyboard on the direction of another monitor then the window would start showing up on that monitor... So it was visible on that monitor but not on the one we just moved it into. After some investigation I decided to atribute that behavior to magic, since I couldn't find any other plausible explanation, if someone knows about this please tell me, I too would like to learn the ways of this dark mysteries from the deep of the Windows OS.On a serious note, this commit creates a workaround for this by simply unmaximazing the window first (it's not restore, it doesn't change the size) then it moves the window (if animations are enabled it proceeds to wait for the animation to finish...), then it maximizes the window again.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.