rustysec / tidalwm

Simple and sane tiling window manager for Gnome Shell
GNU General Public License v3.0
194 stars 5 forks source link

[Bug] Gnome 40 - "Error: No property margin on GtkGrid" #52

Open catleeball opened 2 years ago

catleeball commented 2 years ago

It looks like Tidal WM doesn't run in Gnome 40. In gnome-shell-extension-prefs, the extension is disabled and shows this stack trace:

The settings of extension tidalwm@rustysec.github.io had an error:
    Error: No property margin on GtkGrid

Stack trace:

_init/Gtk.Widget.prototype._init@resource:///org/gnome/gjs/modules/core/overrides/Gtk.js:45:40
buildPrefsWidget@/home/cat/.local/share/gnome-shell/extensions/tidalwm@rustysec.github.io/prefs.js:25:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

It looks like there's more info and a guide here for porting extensions to Gnome 40 if you find it helpful:

Thanks for making this WM!

rustysec commented 2 years ago

Correct, I have not updated for 40 or 41. I haven't had a lot of time, but plan on making updates sometime in the (hopefully) near future.

humanplayer2 commented 2 years ago

I've played around a bit, and Tidal WM actually works quite well under GNOME 40 already (apart from the settings widget).

To get it running, clone the git as per the readme. Then edit metadata.json and include "40" under shell-version. Restarting Gnome shell then lets you use Tidal with default settings.

To change settings, you can edit /schemas/org.gnome.shell.extensions.tidalwm.gschema.xml to your liking, and once done, recompile it with glib-compile-schemas schemas/ run from the extension folder. Then restart Gnome shell again.

Edit: Ok, it is a bit sketchy. Some windows freeze up after sleep, some times the tiling forgets to enlarge windows alone on a workspace, and once in a while the active window highlight seems to linger after closing e.g. dialogs.