From 7a6ecf89839f9ff89b2b36032bf9117e1a021e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Fri, 19 Aug 2005 09:55:29 +0000 Subject: [PATCH] fixes buggy focus fixes static def git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13981 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/screen_blanker/PasswordWindow.h | 5 +++-- src/bin/screen_blanker/ScreenSaverApp.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bin/screen_blanker/PasswordWindow.h b/src/bin/screen_blanker/PasswordWindow.h index a92d67ca51..c3d1393875 100644 --- a/src/bin/screen_blanker/PasswordWindow.h +++ b/src/bin/screen_blanker/PasswordWindow.h @@ -10,7 +10,7 @@ #include #include -const int32 UNLOCK_MESSAGE = 'ULMS'; +const static int32 UNLOCK_MESSAGE = 'ULMS'; class PasswordWindow : public BWindow { @@ -18,9 +18,10 @@ class PasswordWindow : public BWindow PasswordWindow() : BWindow(BRect(100,100,400,230),"pwView",B_NO_BORDER_WINDOW_LOOK, B_FLOATING_ALL_WINDOW_FEEL , B_NOT_MOVABLE | B_NOT_CLOSABLE |B_NOT_ZOOMABLE | B_NOT_MINIMIZABLE | B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS , B_ALL_WORKSPACES), fDie(false) { Setup(); } + void Setup(void); const char *GetPassword(void) {return fPassword->Text();} - void SetPassword(const char* text) { Lock(); fPassword->SetText(text); Unlock(); } + void SetPassword(const char* text) { Lock(); fPassword->SetText(text); fPassword->MakeFocus(true); Unlock(); } bool fDie; private: diff --git a/src/bin/screen_blanker/ScreenSaverApp.cpp b/src/bin/screen_blanker/ScreenSaverApp.cpp index 0afd72b4b9..7ef2146e07 100755 --- a/src/bin/screen_blanker/ScreenSaverApp.cpp +++ b/src/bin/screen_blanker/ScreenSaverApp.cpp @@ -17,7 +17,7 @@ #include "ScreenSaverApp.h" -const int32 RESUME_SAVER = 'RSSV'; +const static int32 RESUME_SAVER = 'RSSV'; // Start the server application. Set pulse to fire once per second. @@ -106,6 +106,7 @@ ScreenSaverApp::MessageReceived(BMessage *message) fWin->Lock(); if (B_OK==fWin->SetFullScreen(true)) { HideCursor(); + fPww->Hide(); } resume_thread(fThreadID); fWin->Unlock();