mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1153] [MERGED] Fix moving on floating workspaces #1225
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/1153
Author: @alex-ds13
Created: 11/28/2024
Status: ✅ Merged
Merged: 11/28/2024
Merged by: @LGUG2Z
Base:
master← Head:fix/moving-on-floating-workspaces📝 Commits (5)
1ef0630feat(wm): listen to event_object_locationchange83f222ffix(wm): correctly define moves across monitorsa026943fix(wm): ignore moves/resizes on floating workspaces4bf24f8fix(wm): avoid workspace load on cross monitor movescb53f46fix(wm): avoid workspace load on command move across monitor📊 Changes
3 files changed (+47 additions, -8 deletions)
View changed files
📝
komorebi/src/process_event.rs(+30 -5)📝
komorebi/src/window_manager.rs(+8 -2)📝
komorebi/src/window_manager_event.rs(+9 -1)📄 Description
Moves within a floating workspace were being considered as moves across monitors. This would cause a weird issue in a situation were you were trying to move a window to a monitor that had a floating workspace and already had a window there, which was matched on
floating_windowsrules so was a floating window. This floating window would be focused on top of the window we just moved with mouse once we let go of the mouse with a bunch of focus flickering between the two windows.Since moves within a floating workspace were wrongfully being considered as across monitors the behavior above would always happen when we moved/resized a window on a floating workspace.
This PR changes how moves across monitors are defined so we don't wrongfully consider a move across monitor when it wasn't, it also ignores moves/resizes within a floating workspace (we don't care about the positions and sizes of windows on floating workspaces...) and it also fixes the issue described above when we actually preform a move across monitors.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.