Small whitespace fix in MenuBar.cpp
This commit is contained in:
@@ -340,9 +340,9 @@ BMenuBar::MouseDown(BPoint where)
|
|||||||
|
|
||||||
uint32 buttons;
|
uint32 buttons;
|
||||||
GetMouse(&where, &buttons);
|
GetMouse(&where, &buttons);
|
||||||
|
|
||||||
BWindow* window = Window();
|
BWindow* window = Window();
|
||||||
if (!window->IsActive() || !window->IsFront()) {
|
if (!window->IsActive() || !window->IsFront()) {
|
||||||
if ((mouse_mode() == B_FOCUS_FOLLOWS_MOUSE)
|
if ((mouse_mode() == B_FOCUS_FOLLOWS_MOUSE)
|
||||||
|| ((mouse_mode() == B_CLICK_TO_FOCUS_MOUSE)
|
|| ((mouse_mode() == B_CLICK_TO_FOCUS_MOUSE)
|
||||||
&& ((buttons & B_SECONDARY_MOUSE_BUTTON) != 0))) {
|
&& ((buttons & B_SECONDARY_MOUSE_BUTTON) != 0))) {
|
||||||
@@ -500,8 +500,8 @@ BMenuBar::StartMenuBar(int32 menuIndex, bool sticky, bool showMenu,
|
|||||||
fMenuSem = create_sem(0, "window close sem");
|
fMenuSem = create_sem(0, "window close sem");
|
||||||
_set_menu_sem_(window, fMenuSem);
|
_set_menu_sem_(window, fMenuSem);
|
||||||
|
|
||||||
fTrackingPID = spawn_thread(_TrackTask, "menu_tracking", B_DISPLAY_PRIORITY,
|
fTrackingPID = spawn_thread(_TrackTask, "menu_tracking",
|
||||||
NULL);
|
B_DISPLAY_PRIORITY, NULL);
|
||||||
if (fTrackingPID >= 0) {
|
if (fTrackingPID >= 0) {
|
||||||
menubar_data data;
|
menubar_data data;
|
||||||
data.menuBar = this;
|
data.menuBar = this;
|
||||||
@@ -699,7 +699,6 @@ BMenuBar::_Track(int32* action, int32 startIndex, bool showMenu)
|
|||||||
*action = fState;
|
*action = fState;
|
||||||
|
|
||||||
return fChosenItem;
|
return fChosenItem;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user