From 614a9775c62972047537835081c27231a93f5e61 Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Sat, 30 Sep 2023 18:26:40 -0400 Subject: [PATCH] Set the mouse pointer to "text" (an I-beam) when it is over the gl_area which the terminal embeds into for the Gtk interface. Addresses https://github.com/mitchellh/ghostty/issues/596 --- src/apprt/gtk/Window.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apprt/gtk/Window.zig b/src/apprt/gtk/Window.zig index c956ffd7f..3b5e8a17f 100644 --- a/src/apprt/gtk/Window.zig +++ b/src/apprt/gtk/Window.zig @@ -226,6 +226,7 @@ pub fn newTab(self: *Window, parent_: ?*CoreSurface) !void { // wait for the "realize" callback from GTK to know that the OpenGL // context is ready. See Surface docs for more info. const gl_area = c.gtk_gl_area_new(); + c.gtk_widget_set_cursor_from_name(gl_area, "text"); try surface.init(self.app, .{ .window = self, .gl_area = @ptrCast(gl_area),