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
This commit is contained in:
Nathan Fisher
2023-09-30 18:26:40 -04:00
parent 5320f1bd11
commit 614a9775c6

View File

@ -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),