DispatchMessage() is called with the looper already locked, so we call fLink->Flush() directly, which does not lock it again. Changed some TODO to be more informative, removed one.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13076 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
183dee22cb
commit
aa6f42c954
@ -793,7 +793,7 @@ BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
|||||||
case B_PULSE:
|
case B_PULSE:
|
||||||
if (fPulseEnabled) {
|
if (fPulseEnabled) {
|
||||||
sendPulse(top_view);
|
sendPulse(top_view);
|
||||||
Flush();
|
fLink->Flush();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1897,8 +1897,7 @@ BWindow::Show()
|
|||||||
void
|
void
|
||||||
BWindow::Hide()
|
BWindow::Hide()
|
||||||
{
|
{
|
||||||
if (fShowLevel == 0)
|
if (fShowLevel == 0) {
|
||||||
{
|
|
||||||
Lock();
|
Lock();
|
||||||
fLink->StartMessage(AS_HIDE_WINDOW);
|
fLink->StartMessage(AS_HIDE_WINDOW);
|
||||||
fLink->Flush();
|
fLink->Flush();
|
||||||
@ -2041,8 +2040,6 @@ BWindow::InitData(BRect frame, const char* title, window_look look,
|
|||||||
|
|
||||||
fMinimized = false;
|
fMinimized = false;
|
||||||
|
|
||||||
// TODO: see WHERE you can use 'fMenuSem'
|
|
||||||
|
|
||||||
fMaxZoomHeight = 32768.0;
|
fMaxZoomHeight = 32768.0;
|
||||||
fMaxZoomWidth = 32768.0;
|
fMaxZoomWidth = 32768.0;
|
||||||
fMinWindHeight = 0.0;
|
fMinWindHeight = 0.0;
|
||||||
@ -2389,10 +2386,12 @@ BWindow::setFocus(BView *focusView, bool notifyInputServer)
|
|||||||
if (focusView)
|
if (focusView)
|
||||||
focusView->MakeFocus(true);
|
focusView->MakeFocus(true);
|
||||||
|
|
||||||
// TODO: find out why do we have to notify input server.
|
// TODO: Notify the input server if we are passing focus
|
||||||
if (notifyInputServer)
|
// from a view which has the B_INPUT_METHOD_AWARE to a one
|
||||||
{
|
// which does not, or vice-versa
|
||||||
// what am I suppose to do here??
|
if (notifyInputServer) {
|
||||||
|
// TODO: Send a message to input server using
|
||||||
|
// control_input_server()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user