* Setting to the saver full screen and back is no longer needed when the
password window shows up (this avoids getting the Deskbar to front when the password window shows up). * Automatic whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28238 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c1e7c02d9e
commit
310a9c9e21
|
@ -55,7 +55,7 @@ ScreenBlanker::~ScreenBlanker()
|
|||
|
||||
|
||||
void
|
||||
ScreenBlanker::ReadyToRun()
|
||||
ScreenBlanker::ReadyToRun()
|
||||
{
|
||||
if (!fSettings.Load()) {
|
||||
fprintf(stderr, "could not load settings\n");
|
||||
|
@ -113,19 +113,18 @@ ScreenBlanker::_SetDPMSMode(uint32 mode)
|
|||
|
||||
|
||||
void
|
||||
ScreenBlanker::_ShowPasswordWindow()
|
||||
ScreenBlanker::_ShowPasswordWindow()
|
||||
{
|
||||
_TurnOnScreen();
|
||||
|
||||
if (fWindow->Lock()) {
|
||||
fRunner->Suspend();
|
||||
|
||||
if (fWindow->SetFullScreen(false) == B_OK) {
|
||||
fWindow->Sync();
|
||||
// TODO: is that needed?
|
||||
ShowCursor();
|
||||
fPasswordWindow->Show();
|
||||
}
|
||||
fWindow->Sync();
|
||||
// TODO: is that needed?
|
||||
ShowCursor();
|
||||
fPasswordWindow->Show();
|
||||
|
||||
fWindow->Unlock();
|
||||
}
|
||||
|
||||
|
@ -228,10 +227,8 @@ ScreenBlanker::MessageReceived(BMessage* message)
|
|||
|
||||
case kMsgResumeSaver:
|
||||
if (fWindow->Lock()) {
|
||||
if (fWindow->SetFullScreen(true) == B_OK) {
|
||||
HideCursor();
|
||||
fPasswordWindow->Hide();
|
||||
}
|
||||
HideCursor();
|
||||
fPasswordWindow->Hide();
|
||||
|
||||
fRunner->Resume();
|
||||
fWindow->Unlock();
|
||||
|
@ -272,7 +269,7 @@ ScreenBlanker::QuitRequested()
|
|||
|
||||
|
||||
void
|
||||
ScreenBlanker::_Shutdown()
|
||||
ScreenBlanker::_Shutdown()
|
||||
{
|
||||
delete fRunner;
|
||||
|
||||
|
@ -289,7 +286,7 @@ ScreenBlanker::_Shutdown()
|
|||
|
||||
|
||||
int
|
||||
main(int, char**)
|
||||
main(int, char**)
|
||||
{
|
||||
ScreenBlanker app;
|
||||
app.Run();
|
||||
|
|
Loading…
Reference in New Issue