split files

This commit is contained in:
valerio cataldo
2025-09-27 13:23:26 +02:00
parent 568ceb7823
commit b400189b4f
4 changed files with 100 additions and 9 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////
// SimpleTiling  MODERN (GNOME Shell 45+) //
// SimpleTiling  MODERN (GNOME Shell 49+) //
// © 2025domoel  MIT //
/////////////////////////////////////////////////////////////
@@ -347,8 +347,8 @@ class Tiler {
if (index > -1) this._centerTimeoutIds.splice(index, 1);
if (!win || !win.get_display()) return GLib.SOURCE_REMOVE;
if (win.get_maximized())
win.unmaximize(Meta.MaximizeFlags.BOTH);
if (win.is_maximized())
win.unmaximize();
const monitorIndex = win.get_monitor();
const workspace = this._workspaceManager.get_active_workspace();
@@ -558,7 +558,7 @@ class Tiler {
height: workArea.height - 2 * this._outerGapVertical,
};
windowsToTile.forEach((win) => {
if (win.get_maximized()) win.unmaximize(Meta.MaximizeFlags.BOTH);
if (win.is_maximized()) win.unmaximize();
});
if (windowsToTile.length === 1) {
windowsToTile[0].move_resize_frame(