[PATCH] Update lastDeviceEventTime in XResetScreenSaver
Lubos Lunak
l.lunak at suse.cz
Thu Jan 28 06:35:49 PST 2010
On Wednesday 27 of January 2010, Keith Packard wrote:
> 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.
It seems to work fine as far as my problem is concerned.
--
Lubos Lunak
openSUSE Boosters team, KDE developer
l.lunak at suse.cz , l.lunak at kde.org
More information about the xorg-devel
mailing list