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:
Tor Hedin Brønner
2019-10-22 13:26:15 +02:00
parent acee807f37
commit ab96a09889
+4
View File
@@ -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;