From 500f3b921ac0b3b942bd18076acae600d9d8707f Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 18 Feb 2024 13:08:50 -0500 Subject: [PATCH] fix(ags): add disabled class on cursorbox --- modules/ags/config/ts/misc/cursorbox.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ags/config/ts/misc/cursorbox.ts b/modules/ags/config/ts/misc/cursorbox.ts index 28ccde29..747f2e7c 100644 --- a/modules/ags/config/ts/misc/cursorbox.ts +++ b/modules/ags/config/ts/misc/cursorbox.ts @@ -155,6 +155,10 @@ export class CursorBox extends Gtk.EventBox { return this.on_scroll_down?.(this, event); } }); + + this.hook(this.#disabled, () => { + this.toggleClassName('disabled', this.#disabled.value); + }); } #display = Gdk.Display.get_default();