harshadgavali / gnome-gesture-improvements

Touchpad gesture improvements for GNOME on Wayland/X11
https://extensions.gnome.org/extension/4245/gesture-improvements/
GNU General Public License v3.0
330 stars 38 forks source link

GNOME 47 migration #217

Open tedzards509 opened 2 months ago

tedzards509 commented 2 months ago

Since there's multiple PRs implementing support for GNOME 45 and 46, supporting GNOME 47 doesn't seem like too much of a crazy idea.

The migration guide was recently released here (gjs.guide). It doesn't seem to break as much as other recent updates to the extensions.

All we would need is an official version that supports GNOME 46 instead of the patches diverging with every version.

LeBigCronch commented 1 week ago

So I found a quick and dirty way to get gesture imrpovements working on gnome 47, im not sure that it will work for everyone and i'm no javascript expert whatsoever but here is what i did

snapWindow.js (line 266) ---

this._uiGroupAddedActorId = Main.layoutManager.uiGroup.connect('actor-added', () => {

++

this._uiGroupAddedActorId = Main.layoutManager.uiGroup.connect('child-added', () => {

and of course the obvious metadata.json (line 7) -- "46" ++ "47"

here is the extension zip file, to install it run gnome-extensions install -f gestureImprovements47@gestures.zip

gestureImprovements47@gestures.zip

this code is based off of a ported version for gnome 46 that I found on github some time ago, i would like to credit the original poster but i can't find it anywhere.