unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* w32 hourglass cursor
@ 2014-07-03 10:35 Dmitry Antipov
  2014-07-03 16:18 ` Dani Moncayo
  0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Antipov @ 2014-07-03 10:35 UTC (permalink / raw)
  To: Emacs development discussions

[-- Attachment #1: Type: text/plain, Size: 120 bytes --]

Can someone test this small cleanup with trunk on MS-Windows?
This looks correct, but I can't verify it myself.

Dmitry

[-- Attachment #2: w32_hourglass_cursor.patch --]
[-- Type: text/x-patch, Size: 1198 bytes --]

=== modified file 'src/w32fns.c'
--- src/w32fns.c	2014-06-29 16:12:08 +0000
+++ src/w32fns.c	2014-07-03 10:28:58 +0000
@@ -5501,27 +5501,13 @@
  ***********************************************************************/
 
 void
-w32_note_current_window (void)
-{
-  struct frame * f = SELECTED_FRAME ();
-
-  if (!FRAME_W32_P (f))
-    return;
-
-  hourglass_hwnd = FRAME_W32_WINDOW (f);
-}
-
-void
 show_hourglass (struct atimer *timer)
 {
-  struct frame *f;
+  struct frame *f = (struct frame *) timer->client_data;
 
   hourglass_atimer = NULL;
 
   block_input ();
-  f = x_window_to_frame (&one_w32_display_info,
-				       hourglass_hwnd);
-
   if (f)
     f->output_data.w32->hourglass_p = 0;
   else

=== modified file 'src/xdisp.c'
--- src/xdisp.c	2014-07-03 06:00:53 +0000
+++ src/xdisp.c	2014-07-03 10:29:14 +0000
@@ -30683,15 +30683,8 @@
   else
     delay = make_timespec (DEFAULT_HOURGLASS_DELAY, 0);
 
-#ifdef HAVE_NTGUI
-  {
-    extern void w32_note_current_window (void);
-    w32_note_current_window ();
-  }
-#endif /* HAVE_NTGUI */
-
   hourglass_atimer = start_atimer (ATIMER_RELATIVE, delay,
-				   show_hourglass, NULL);
+				   show_hourglass, SELECTED_FRAME ());
 }
 
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-07-03 18:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-03 10:35 w32 hourglass cursor Dmitry Antipov
2014-07-03 16:18 ` Dani Moncayo
2014-07-03 16:30   ` Dmitry Antipov
2014-07-03 17:07     ` Dani Moncayo
2014-07-03 17:33       ` Dmitry Antipov
2014-07-03 17:53         ` Dani Moncayo
2014-07-03 18:15           ` Dmitry Antipov
2014-07-03 16:42   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).