mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-07 04:17:00 +00:00
insertWindow: Do not handle tiled windows that are stuck
More only-on-primary work. When a secondary monitor is to the left/right of primary, tiled windows become `stuck` when they're pushed into the secondary monitor. Eg. if `A` and `B` is tiled `B` will become `stuck` by entiring the secondary monitor: |-----primary-----|----secondary------| | |-------------| | |-------------| | | | | | | | | | | | | | | | | | A | | | B | | | | | | | | | | |_____________| | |_____________| | |_________________|___________________| Handle this edge case by not doing anything with such windows.
This commit is contained in:
@@ -2144,6 +2144,10 @@ function insertWindow(metaWindow, {existing}) {
|
||||
if (metaWindow.is_on_all_workspaces()) {
|
||||
// Only connect the necessary signals and show windows on shared
|
||||
// secondary monitors.
|
||||
let space = spaces.spaceOfWindow(metaWindow);
|
||||
if (space.includes(metaWindow)) {
|
||||
return;
|
||||
}
|
||||
connectSizeChanged();
|
||||
showWindow(metaWindow);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user