Commit b0b486db authored by Dmitry Antipov's avatar Dmitry Antipov

* xfns.c (x_set_mouse_color): Recolor vertical_drag_cursor.

* xterm.c (x_free_frame_resources): Free all allocated cursors.
parent baf8d0ac
2014-03-11 Dmitry Antipov <dmantipov@yandex.ru>
* xfns.c (x_set_mouse_color): Recolor vertical_drag_cursor.
* xterm.c (x_free_frame_resources): Free all allocated cursors.
2014-03-10 Eli Zaretskii <eliz@gnu.org>
* w32.c (fstatat): Don't add an extra slash if the argument ends
......
......@@ -716,6 +716,7 @@ x_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
XRecolorCursor (dpy, hand_cursor, &fore_color, &back_color);
XRecolorCursor (dpy, hourglass_cursor, &fore_color, &back_color);
XRecolorCursor (dpy, horizontal_drag_cursor, &fore_color, &back_color);
XRecolorCursor (dpy, vertical_drag_cursor, &fore_color, &back_color);
}
if (FRAME_X_WINDOW (f) != 0)
......
......@@ -9305,6 +9305,22 @@ x_free_frame_resources (struct frame *f)
f->output_data.x->black_relief.gc = 0;
}
/* Free cursors. */
if (f->output_data.x->text_cursor != 0)
XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->text_cursor);
if (f->output_data.x->nontext_cursor != 0)
XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->nontext_cursor);
if (f->output_data.x->modeline_cursor != 0)
XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->modeline_cursor);
if (f->output_data.x->hand_cursor != 0)
XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->hand_cursor);
if (f->output_data.x->hourglass_cursor != 0)
XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->hourglass_cursor);
if (f->output_data.x->horizontal_drag_cursor != 0)
XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->horizontal_drag_cursor);
if (f->output_data.x->vertical_drag_cursor != 0)
XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->vertical_drag_cursor);
XFlush (FRAME_X_DISPLAY (f));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment