[PATCH] Update lastDeviceEventTime in XResetScreenSaver

Keith Packard keithp at keithp.com
Wed Jan 27 14:23:01 PST 2010


On Wed, 27 Jan 2010 22:59:45 +0100, Julien Cristau <jcristau at debian.org> wrote:

> diff --git a/dix/window.c b/dix/window.c
> index caff1cb..2676a54 100644
> --- a/dix/window.c
> +++ b/dix/window.c
> @@ -3233,8 +3233,13 @@ dixSaveScreens(ClientPtr client, int on, int mode)
>         }
>      }
>      screenIsSaved = what;
> -    if (mode == ScreenSaverReset)
> -       SetScreenSaverTimer();
> +    if (mode == ScreenSaverReset) {
> +       if (on == SCREEN_SAVER_FORCER) {
> +           UpdateCurrentTimeIf();
> +           lastDeviceEventTime = currentTime;
> +       }
> +       SetScreenSaverTimer();
> +    }
>      return Success;
>  }

Yeah, if this works, it looks good to me. Testing would be appreciated.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20100127/24bfe5e3/attachment.pgp 


More information about the xorg-devel mailing list