fixes buggy focus

fixes static def


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13981 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2005-08-19 09:55:29 +00:00
parent 056ae67fb4
commit 7a6ecf8983
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -10,7 +10,7 @@
#include <TextControl.h> #include <TextControl.h>
#include <Button.h> #include <Button.h>
const int32 UNLOCK_MESSAGE = 'ULMS'; const static int32 UNLOCK_MESSAGE = 'ULMS';
class PasswordWindow : public BWindow 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 , 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_NOT_MOVABLE | B_NOT_CLOSABLE |B_NOT_ZOOMABLE | B_NOT_MINIMIZABLE | B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS ,
B_ALL_WORKSPACES), fDie(false) { Setup(); } B_ALL_WORKSPACES), fDie(false) { Setup(); }
void Setup(void); void Setup(void);
const char *GetPassword(void) {return fPassword->Text();} 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; bool fDie;
private: private:
+2 -1
View File
@@ -17,7 +17,7 @@
#include "ScreenSaverApp.h" #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. // Start the server application. Set pulse to fire once per second.
@@ -106,6 +106,7 @@ ScreenSaverApp::MessageReceived(BMessage *message)
fWin->Lock(); fWin->Lock();
if (B_OK==fWin->SetFullScreen(true)) { if (B_OK==fWin->SetFullScreen(true)) {
HideCursor(); HideCursor();
fPww->Hide();
} }
resume_thread(fThreadID); resume_thread(fThreadID);
fWin->Unlock(); fWin->Unlock();