1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

Don't cause the mouse pointer to reappear just because it's changed

shape.

[originally from svn r2053]
This commit is contained in:
Simon Tatham 2002-10-14 23:39:07 +00:00
parent 8bc305cafe
commit cf74237900

View File

@ -38,6 +38,7 @@ struct gui_data {
int pasteout_data_len; int pasteout_data_len;
int font_width, font_height; int font_width, font_height;
int ignore_sbar; int ignore_sbar;
int mouseptr_visible;
guint term_paste_idle_id; guint term_paste_idle_id;
GdkAtom compound_text_atom; GdkAtom compound_text_atom;
char wintitle[sizeof(((Config *)0)->wintitle)]; char wintitle[sizeof(((Config *)0)->wintitle)];
@ -189,6 +190,7 @@ void show_mouseptr(int show)
gdk_window_set_cursor(inst->area->window, inst->currcursor); gdk_window_set_cursor(inst->area->window, inst->currcursor);
else else
gdk_window_set_cursor(inst->area->window, inst->blankcursor); gdk_window_set_cursor(inst->area->window, inst->blankcursor);
inst->mouseptr_visible = show;
} }
gint configure_area(GtkWidget *widget, GdkEventConfigure *event, gpointer data) gint configure_area(GtkWidget *widget, GdkEventConfigure *event, gpointer data)
@ -802,7 +804,7 @@ void set_raw_mouse_mode(int activate)
inst->currcursor = inst->rawcursor; inst->currcursor = inst->rawcursor;
else else
inst->currcursor = inst->textcursor; inst->currcursor = inst->textcursor;
show_mouseptr(1); show_mouseptr(inst->mouseptr_visible);
} }
void request_resize(int w, int h) void request_resize(int w, int h)