mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
apprt/gtk: change default cursor to text
This commit is contained in:
@ -85,6 +85,7 @@ im_len: u7 = 0,
|
||||
|
||||
pub fn init(self: *Surface, app: *App, opts: Options) !void {
|
||||
const widget = @as(*c.GtkWidget, @ptrCast(opts.gl_area));
|
||||
c.gtk_widget_set_cursor_from_name(@ptrCast(opts.gl_area), "text");
|
||||
c.gtk_gl_area_set_required_version(opts.gl_area, 3, 3);
|
||||
c.gtk_gl_area_set_has_stencil_buffer(opts.gl_area, 0);
|
||||
c.gtk_gl_area_set_has_depth_buffer(opts.gl_area, 0);
|
||||
@ -355,7 +356,7 @@ pub fn setMouseShape(
|
||||
shape: terminal.MouseShape,
|
||||
) !void {
|
||||
const name: [:0]const u8 = switch (shape) {
|
||||
.default => "default",
|
||||
.default => "text",
|
||||
.help => "help",
|
||||
.pointer => "pointer",
|
||||
.context_menu => "context-menu",
|
||||
|
Reference in New Issue
Block a user