Skip to content

Commit 47dadc7

Browse files
authored
Fix formatting
1 parent 4c297b5 commit 47dadc7

1 file changed

Lines changed: 38 additions & 28 deletions

File tree

lib/extension/window.js

Lines changed: 38 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,15 +1300,18 @@ export class WindowManager extends GObject.Object {
13001300
}
13011301
}
13021302

1303-
if (gap === 0 || (() => {
1304-
try {
1305-
// GNOME 49+
1306-
return metaWindow.is_maximized();
1307-
} catch (e) {
1308-
// pre-49 fallback
1309-
return metaWindow.get_maximized() === 1 || metaWindow.get_maximized() === 2;
1310-
}
1311-
})()) {
1303+
if (
1304+
gap === 0 ||
1305+
(() => {
1306+
try {
1307+
// GNOME 49+
1308+
return metaWindow.is_maximized();
1309+
} catch (e) {
1310+
// pre-49 fallback
1311+
return metaWindow.get_maximized() === 1 || metaWindow.get_maximized() === 2;
1312+
}
1313+
})()
1314+
) {
13121315
inset = 0;
13131316
}
13141317

@@ -1755,15 +1758,17 @@ export class WindowManager extends GObject.Object {
17551758
this._handleMoving(focusNodeWindow);
17561759
}
17571760
} else {
1758-
if ((() => {
1759-
try {
1760-
// GNOME 49+
1761-
return !focusMetaWindow.is_maximized();
1762-
} catch (e) {
1763-
// pre-49 fallback
1764-
return focusMetaWindow.get_maximized() === 0;
1765-
}
1766-
})()) {
1761+
if (
1762+
(() => {
1763+
try {
1764+
// GNOME 49+
1765+
return !focusMetaWindow.is_maximized();
1766+
} catch (e) {
1767+
// pre-49 fallback
1768+
return focusMetaWindow.get_maximized() === 0;
1769+
}
1770+
})()
1771+
) {
17671772
this.renderTree(from);
17681773
}
17691774
}
@@ -1807,7 +1812,10 @@ export class WindowManager extends GObject.Object {
18071812
return w.nodeValue.is_maximized() || w.nodeValue.is_fullscreen();
18081813
} catch (e) {
18091814
// pre-49 fallback
1810-
return w.nodeValue.get_maximized() === Meta.MaximizeFlags.BOTH || w.nodeValue.is_fullscreen();
1815+
return (
1816+
w.nodeValue.get_maximized() === Meta.MaximizeFlags.BOTH ||
1817+
w.nodeValue.is_fullscreen()
1818+
);
18111819
}
18121820
})();
18131821
}).length === 0
@@ -2452,15 +2460,17 @@ export class WindowManager extends GObject.Object {
24522460
}
24532461
this._grabCleanup(focusNodeWindow);
24542462

2455-
if ((() => {
2456-
try {
2457-
// GNOME 49+
2458-
return !focusMetaWindow.is_maximized();
2459-
} catch (e) {
2460-
// pre-49 fallback
2461-
return focusMetaWindow.get_maximized() === 0;
2462-
}
2463-
})()) {
2463+
if (
2464+
(() => {
2465+
try {
2466+
// GNOME 49+
2467+
return !focusMetaWindow.is_maximized();
2468+
} catch (e) {
2469+
// pre-49 fallback
2470+
return focusMetaWindow.get_maximized() === 0;
2471+
}
2472+
})()
2473+
) {
24642474
this.renderTree("grab-op-end");
24652475
}
24662476

0 commit comments

Comments
 (0)