ui/gtk: Respect -show-cursor option
PATCH 1/1 ui/gtk: Respect -show-cursor option
If the user specifies the -show-cursor option, force the cursor to be shown even if it would not otherwise.
Signed-off-by Joshua Watt <[email protected]>
--- ui/gtk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
ui/gtk.c +2 -1
@@ -258,7 +258,8 @@ static void gd_update_cursor(VirtualConsole *vc) } window =gtk_widget_get_window (GTK_WIDGET (vc->gfx.drawing_area)); -if (s->full_screen ||qemu_input_is_absolute () || s->ptr_owner == vc) { +if (cursor_hide && + (s->full_screen ||qemu_input_is_absolute () || s->ptr_owner == vc)) {gdk_window_set_cursor (window, s->null_cursor); }else {gdk_window_set_cursor (window,NULL );
Signature · 1 line
2.24.1