Skip to contentSkip to conversation

ui/gtk: Respect -show-cursor option

PATCH New Joshua Watt 1 participant 1 message Jan 29, 2020

lore
Share & tools
lore
#0 lore raw

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.

---
 ui/gtk.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
ui/gtk.c +2 -1
index d18892d1de..bdd1b53236 100644
@@ -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