diff options
| author | Dmitry Antipov | 2014-03-11 10:50:01 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-03-11 10:50:01 +0400 |
| commit | b0b486db04acbbcb923539ab2b427384247875f3 (patch) | |
| tree | 09577783467112a9543f6eabd2c8535117590be7 /src | |
| parent | baf8d0ac7d20afa201494540fadde8652560dbee (diff) | |
| download | emacs-b0b486db04acbbcb923539ab2b427384247875f3.tar.gz emacs-b0b486db04acbbcb923539ab2b427384247875f3.zip | |
* xfns.c (x_set_mouse_color): Recolor vertical_drag_cursor.
* xterm.c (x_free_frame_resources): Free all allocated cursors.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xfns.c | 1 | ||||
| -rw-r--r-- | src/xterm.c | 16 |
3 files changed, 22 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 14c917a4e61..2475fd5a1d0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-03-11 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * xfns.c (x_set_mouse_color): Recolor vertical_drag_cursor. | ||
| 4 | * xterm.c (x_free_frame_resources): Free all allocated cursors. | ||
| 5 | |||
| 1 | 2014-03-10 Eli Zaretskii <eliz@gnu.org> | 6 | 2014-03-10 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * w32.c (fstatat): Don't add an extra slash if the argument ends | 8 | * w32.c (fstatat): Don't add an extra slash if the argument ends |
diff --git a/src/xfns.c b/src/xfns.c index ff492dcf126..5dbc7053fd9 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -716,6 +716,7 @@ x_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 716 | XRecolorCursor (dpy, hand_cursor, &fore_color, &back_color); | 716 | XRecolorCursor (dpy, hand_cursor, &fore_color, &back_color); |
| 717 | XRecolorCursor (dpy, hourglass_cursor, &fore_color, &back_color); | 717 | XRecolorCursor (dpy, hourglass_cursor, &fore_color, &back_color); |
| 718 | XRecolorCursor (dpy, horizontal_drag_cursor, &fore_color, &back_color); | 718 | XRecolorCursor (dpy, horizontal_drag_cursor, &fore_color, &back_color); |
| 719 | XRecolorCursor (dpy, vertical_drag_cursor, &fore_color, &back_color); | ||
| 719 | } | 720 | } |
| 720 | 721 | ||
| 721 | if (FRAME_X_WINDOW (f) != 0) | 722 | if (FRAME_X_WINDOW (f) != 0) |
diff --git a/src/xterm.c b/src/xterm.c index bf5456b5f8b..8ae26344f95 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -9305,6 +9305,22 @@ x_free_frame_resources (struct frame *f) | |||
| 9305 | f->output_data.x->black_relief.gc = 0; | 9305 | f->output_data.x->black_relief.gc = 0; |
| 9306 | } | 9306 | } |
| 9307 | 9307 | ||
| 9308 | /* Free cursors. */ | ||
| 9309 | if (f->output_data.x->text_cursor != 0) | ||
| 9310 | XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->text_cursor); | ||
| 9311 | if (f->output_data.x->nontext_cursor != 0) | ||
| 9312 | XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->nontext_cursor); | ||
| 9313 | if (f->output_data.x->modeline_cursor != 0) | ||
| 9314 | XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->modeline_cursor); | ||
| 9315 | if (f->output_data.x->hand_cursor != 0) | ||
| 9316 | XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->hand_cursor); | ||
| 9317 | if (f->output_data.x->hourglass_cursor != 0) | ||
| 9318 | XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->hourglass_cursor); | ||
| 9319 | if (f->output_data.x->horizontal_drag_cursor != 0) | ||
| 9320 | XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->horizontal_drag_cursor); | ||
| 9321 | if (f->output_data.x->vertical_drag_cursor != 0) | ||
| 9322 | XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->vertical_drag_cursor); | ||
| 9323 | |||
| 9308 | XFlush (FRAME_X_DISPLAY (f)); | 9324 | XFlush (FRAME_X_DISPLAY (f)); |
| 9309 | } | 9325 | } |
| 9310 | 9326 | ||