mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-25 13:16:11 +03:00
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:
@ -226,6 +226,7 @@ pub fn newTab(self: *Window, parent_: ?*CoreSurface) !void {
|
|||||||
// wait for the "realize" callback from GTK to know that the OpenGL
|
// wait for the "realize" callback from GTK to know that the OpenGL
|
||||||
// context is ready. See Surface docs for more info.
|
// context is ready. See Surface docs for more info.
|
||||||
const gl_area = c.gtk_gl_area_new();
|
const gl_area = c.gtk_gl_area_new();
|
||||||
|
c.gtk_widget_set_cursor_from_name(gl_area, "text");
|
||||||
try surface.init(self.app, .{
|
try surface.init(self.app, .{
|
||||||
.window = self,
|
.window = self,
|
||||||
.gl_area = @ptrCast(gl_area),
|
.gl_area = @ptrCast(gl_area),
|
||||||
|
Reference in New Issue
Block a user