On Wed, 27 Jan 2010 22:59:45 +0100, Julien Cristau <[email protected]> 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.

-- 
[email protected]

Attachment: pgp0jgOdv4Xyv.pgp
Description: PGP signature

_______________________________________________
xorg-devel mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to