apprt/gtk-ng: set cursor on Surface widget, not GL area

This fixes `mouse-hide-while-typing`. Don't know why this worked before
(I tested it yesterday!) but stopped working today. But this now works,
and conceptually makes some sense.
pull/8227/head
Mitchell Hashimoto 2025-08-13 15:21:06 -07:00
parent 92d6395a8d
commit 997d38c362
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 3 additions and 3 deletions

View File

@ -1240,7 +1240,7 @@ pub const Surface = extern struct {
renderer.OpenGL.MIN_VERSION_MAJOR,
renderer.OpenGL.MIN_VERSION_MINOR,
);
gl_area.as(gtk.Widget).setCursorFromName("text");
self.as(gtk.Widget).setCursorFromName("text");
// Initialize our config
self.propConfig(undefined, null);
@ -1570,7 +1570,7 @@ pub const Surface = extern struct {
// If we're hidden we set it to "none"
if (priv.mouse_hidden) {
priv.gl_area.as(gtk.Widget).setCursorFromName("none");
self.as(gtk.Widget).setCursorFromName("none");
return;
}
@ -1628,7 +1628,7 @@ pub const Surface = extern struct {
};
// Set our new cursor.
priv.gl_area.as(gtk.Widget).setCursorFromName(name.ptr);
self.as(gtk.Widget).setCursorFromName(name.ptr);
}
fn propBellRinging(