fixed handling of jumping to primary when screen saver starts

and back to secondary when it stops.  also now redirecting
keyboard input to root window when screen saver starts;  this
allows the user to type in the lock dialog and also effectively
discards any input used to deactivate the screen saver.
This commit is contained in:
crs
2002-06-23 23:24:22 +00:00
parent 80d11df2f9
commit 1377882a9f
7 changed files with 37 additions and 25 deletions

View File

@@ -165,7 +165,7 @@ CMSWindowsPrimaryScreen::close()
}
void
CMSWindowsPrimaryScreen::enter(SInt32 x, SInt32 y)
CMSWindowsPrimaryScreen::enter(SInt32 x, SInt32 y, bool forScreenSaver)
{
log((CLOG_INFO "entering primary at %d,%d", x, y));
assert(m_active == true);
@@ -174,7 +174,9 @@ CMSWindowsPrimaryScreen::enter(SInt32 x, SInt32 y)
enterNoWarp();
// warp to requested location
warpCursor(x, y);
if (!forScreenSaver) {
warpCursor(x, y);
}
}
bool