diff options
| author | Eli Zaretskii | 2015-06-26 08:45:29 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2015-06-26 08:45:29 +0200 |
| commit | f14275633851b047e5aecfa6d12f160ee4c2f149 (patch) | |
| tree | 202f93d6fd80e173f7e1b0f04d0cc07738ea7649 /src/w32term.c | |
| parent | 605765af40831390be93264b36b31fad56907554 (diff) | |
| download | emacs-f14275633851b047e5aecfa6d12f160ee4c2f149.tar.gz emacs-f14275633851b047e5aecfa6d12f160ee4c2f149.zip | |
Fix invisible mouse pointers on Windows.
* src/w32fns.c: Include windowsx.h.
(w32_wnd_proc): If the mouse moved and the mouse pointer is
invisible, make it visible again even when the main (Lisp)
thread is busy.
* src/w32term.c (w32_toggle_invisible_pointer): Rather then
garbaging the frame have the input thread call SetCursor.
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/w32term.c b/src/w32term.c index 7c5f2db3a4c..fbd31b15de2 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -6613,14 +6613,10 @@ w32_toggle_invisible_pointer (struct frame *f, bool invisible) | |||
| 6613 | if (f->pointer_invisible != invisible) | 6613 | if (f->pointer_invisible != invisible) |
| 6614 | { | 6614 | { |
| 6615 | f->pointer_invisible = invisible; | 6615 | f->pointer_invisible = invisible; |
| 6616 | SET_FRAME_GARBAGED (f); | 6616 | w32_define_cursor (FRAME_W32_WINDOW (f), |
| 6617 | f->output_data.w32->current_cursor); | ||
| 6617 | } | 6618 | } |
| 6618 | 6619 | ||
| 6619 | if (invisible) | ||
| 6620 | SetCursor (NULL); | ||
| 6621 | else | ||
| 6622 | SetCursor (f->output_data.w32->current_cursor); | ||
| 6623 | |||
| 6624 | unblock_input (); | 6620 | unblock_input (); |
| 6625 | } | 6621 | } |
| 6626 | 6622 | ||