[MPlayer-cvslog] r34122 - trunk/gui/wm/ws.c

ib subversion at mplayerhq.hu
Wed Sep 21 15:55:40 CEST 2011


Author: ib
Date: Wed Sep 21 15:55:40 2011
New Revision: 34122

Log:
Replace numeric constant for cursor autohide time by symbolic constant.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Wed Sep 21 15:26:02 2011	(r34121)
+++ trunk/gui/wm/ws.c	Wed Sep 21 15:55:40 2011	(r34122)
@@ -66,6 +66,8 @@
 #include <sys/ipc.h>
 #include <sys/shm.h>
 
+#define MOUSEHIDE_DELAY 1000   // in milliseconds
+
 typedef struct {
     unsigned long flags;
     unsigned long functions;
@@ -657,7 +659,7 @@ Bool wsEvents(Display *display, XEvent *
 
     wsWindowList[l]->State = 0;
 
-    if (mouse_hide && (GetTimerMS() - mouse_time >= 1000)) {
+    if (mouse_hide && (GetTimerMS() - mouse_time >= MOUSEHIDE_DELAY)) {
         wsVisibleMouse(wsWindowList[l], wsHideMouseCursor);
         mouse_hide = False;
     }


More information about the MPlayer-cvslog mailing list