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/xterm.c | |
| 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/xterm.c')
| -rw-r--r-- | src/xterm.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 | ||