From 711c7b2874ea8c485dc20a6cc2d8eb9ad120cc0c Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.com> Date: Wed, 29 Oct 2025 00:07:17 +0100 Subject: [PATCH 1/6] `get_maximized` -> `is_maximized` --- src/extension.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/extension.js b/src/extension.js index 224df97..27abd04 100644 --- a/src/extension.js +++ b/src/extension.js @@ -1038,7 +1038,7 @@ class Manager { } if (setmove) { if (this._targetWindow.allows_move() && - !this._targetWindow.get_maximized()) { + !this._targetWindow.is_maximized()) { this._edgeAction = WindowEdgeAction.MOVE; } } @@ -1100,7 +1100,7 @@ class Manager { let holdMove = this._getTapHoldMove(); if (!allowMove || holdMove) { - if (!this._targetWindow.get_maximized() && + if (!this._targetWindow.is_maximized() && !this._targetWindow.isTiled) { this._edgeGestured = 1; } @@ -1111,7 +1111,7 @@ class Manager { else if ( !this._edgeGestured && !this._targetWindow.is_fullscreen() && - !this._targetWindow.get_maximized() && + !this._targetWindow.is_maximized() && this._targetWindow.allows_move()) { this._edgeAction = WindowEdgeAction.MOVE; return this._swipeUpdateMove(); @@ -1550,7 +1550,7 @@ class Manager { activeWin = global.display.get_focus_window(); } if (activeWin && ((activeWin.allows_move() && - !activeWin.get_maximized()) || !isWin)) { + !activeWin.is_maximized()) || !isWin)) { activeWin.activate( Meta.CURRENT_TIME ); @@ -2502,7 +2502,7 @@ class Manager { } let winCanMax = activeWin.allows_move() && activeWin.can_maximize(); - let winIsMaximized = activeWin.get_maximized(); + let winIsMaximized = activeWin.is_maximized(); let winMaxed = Meta.MaximizeFlags.BOTH == winIsMaximized; if (activeWin.isTiled) { winIsMaximized = Meta.MaximizeFlags.VERTICAL; @@ -2679,4 +2679,4 @@ export default class WindowGesturesExtension extends Extension { this.manager.destroy(); this.manager = null; } -} \ No newline at end of file +} From 92bb7625e1e649f282dd19e56a702a4c2edd068a Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.com> Date: Wed, 29 Oct 2025 00:58:14 +0100 Subject: [PATCH 2/6] `Meta.Rectangle` -> `Mtk.Rectangle` --- src/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.js b/src/extension.js index 27abd04..3bcfb9e 100644 --- a/src/extension.js +++ b/src/extension.js @@ -557,7 +557,7 @@ class Manager { return; } global.window_manager.emit("show-tile-preview", - global.display.get_focus_window(), new Meta.Rectangle( + global.display.get_focus_window(), new Mtk.Rectangle( { x: rx, y: ry, width: rw, height: rh } ) , this._monitorId From fc43af6c9f95876fb5de2068fa86cc17cbb12ce6 Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.com> Date: Wed, 29 Oct 2025 01:30:46 +0100 Subject: [PATCH 3/6] add rebuild script --- rebuild.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 rebuild.sh diff --git a/rebuild.sh b/rebuild.sh new file mode 100755 index 0000000..7ba4789 --- /dev/null +++ b/rebuild.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +./build.sh && + + unzip -u windowgestures@extension.amarullz.com.zip -d windowgestures@extension.amarullz.com && + + glib-compile-schemas windowgestures@extension.amarullz.com/schemas From a23ab61d547fdc4bc5741a648c8d6d69f50f815c Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.com> Date: Wed, 29 Oct 2025 02:25:02 +0100 Subject: [PATCH 4/6] import Mtk. Update `window.un-/maximize` to `set-[un-]maximize-flags` would get js warning re un-/maximize wanting 0 args but got 1. Unsure if it would have been better or worse to ditch the args instead of going with `set-[un-]maximize-flags`. --- src/extension.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/extension.js b/src/extension.js index 3bcfb9e..ee4dead 100644 --- a/src/extension.js +++ b/src/extension.js @@ -21,6 +21,7 @@ import Meta from 'gi://Meta'; import St from 'gi://St'; import Shell from 'gi://Shell'; import Gio from 'gi://Gio'; +import Mtk from 'gi://Mtk'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import { Extension } from 'resource:///org/gnome/shell/extensions/extension.js'; @@ -1330,7 +1331,7 @@ class Manager { if (this._isEdge(WindowEdgeAction.MOVE_SNAP_TOP)) { if (this._targetWindow.can_maximize()) { this._resetWinPos(); - this._targetWindow.maximize(Meta.MaximizeFlags.BOTH); + this._targetWindow.set_maximize_flags(Meta.MaximizeFlags.BOTH); } } else if (this._isEdge(WindowEdgeAction.MOVE_SNAP_LEFT)) { @@ -2608,7 +2609,7 @@ class Manager { } if (this._actionWidgets[wid] && (progress > 0)) { if (ui == 1) { - activeWin.maximize(Meta.MaximizeFlags.BOTH); + activeWin.set_maximize_flags(Meta.MaximizeFlags.BOTH); } else if (ui == 2) { this._setSnapWindow(0); @@ -2647,7 +2648,7 @@ class Manager { } else if (ui == 6) { // restore - activeWin.unmaximize( + activeWin.set_unmaximize_flags( Meta.MaximizeFlags.BOTH ); if (activeWin.isTiled) { From 0346e0315e11c9119b974c4c667cc05f2d6659b6 Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.com> Date: Wed, 4 Feb 2026 21:52:21 +0100 Subject: [PATCH 5/6] remove rebuild.sh script --- rebuild.sh | 7 ------- 1 file changed, 7 deletions(-) delete mode 100755 rebuild.sh diff --git a/rebuild.sh b/rebuild.sh deleted file mode 100755 index 7ba4789..0000000 --- a/rebuild.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -./build.sh && - - unzip -u windowgestures@extension.amarullz.com.zip -d windowgestures@extension.amarullz.com && - - glib-compile-schemas windowgestures@extension.amarullz.com/schemas From 0b3aee5d1d99790fe3b4e359a130fdc5b651b3a7 Mon Sep 17 00:00:00 2001 From: Lucas Spitzer Date: Wed, 18 Mar 2026 02:24:22 +0100 Subject: [PATCH 6/6] feat: updated readme for gnome 49 and added manual build and installation steps --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 64a56b5..29143c9 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,19 @@ # Window Gestures Window Gestures is GNOME Shell extension for managing window with touchpad gestures. -Support only for GNOME 45. +Support up to gnome 49. ## Installation -[![Get from GNOME Extension](./gext.svg)](https://extensions.gnome.org/extension/6343/window-gestures/) +*Gnome extension repository don't support Gnome 49* +### Manually +**Clone the repository and enter it** +`git clone https://github.com/spitzerl/windowgestures && cd windowgestures` +**Run the building script** +`./build.sh` +**Then install the generated zip** +`gnome-extensions install windowgestures@extension.amarullz.com.zip` +Restart your session and then open your extension manager to activate it. + ## Features