From b3530065042b900e2828c629fb9d4b48ec3511d8 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 14 Oct 2002 23:39:07 +0000 Subject: [PATCH 1/1] Don't cause the mouse pointer to reappear just because it's changed shape. git-svn-id: svn://svn.tartarus.org/sgt/putty@2053 cda61777-01e9-0310-a592-d414129be87e --- unix/pterm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unix/pterm.c b/unix/pterm.c index 0c1dc7c4..c612fd3b 100644 --- a/unix/pterm.c +++ b/unix/pterm.c @@ -38,6 +38,7 @@ struct gui_data { int pasteout_data_len; int font_width, font_height; int ignore_sbar; + int mouseptr_visible; guint term_paste_idle_id; GdkAtom compound_text_atom; char wintitle[sizeof(((Config *)0)->wintitle)]; @@ -189,6 +190,7 @@ void show_mouseptr(int show) gdk_window_set_cursor(inst->area->window, inst->currcursor); else gdk_window_set_cursor(inst->area->window, inst->blankcursor); + inst->mouseptr_visible = show; } gint configure_area(GtkWidget *widget, GdkEventConfigure *event, gpointer data) @@ -802,7 +804,7 @@ void set_raw_mouse_mode(int activate) inst->currcursor = inst->rawcursor; else inst->currcursor = inst->textcursor; - show_mouseptr(1); + show_mouseptr(inst->mouseptr_visible); } void request_resize(int w, int h) -- 2.11.0