Mercurial > mplayer.hg
changeset 34034:8c75091726d8
Replace numeric constant for cursor autohide time by symbolic constant.
author | ib |
---|---|
date | Wed, 21 Sep 2011 13:55:40 +0000 |
parents | 395a736cd075 |
children | 5daa51a194ed |
files | gui/wm/ws.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/wm/ws.c Wed Sep 21 13:26:02 2011 +0000 +++ b/gui/wm/ws.c Wed Sep 21 13:55:40 2011 +0000 @@ -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 @@ 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; }