* added click to focus mouse mode; right-click for bring-to-front and send-to-back
(might cause some regressions in FFM) * made accept first click user configurable * updated the Mouse preflet to use the layout kit * removed the warp and instant warp modes from the Mouse preflet * changed internal representation of mouse modes (warp modes moved) * coding style fixes git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33732 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <binary_compatibility/Interface.h>
|
||||
#include <MenuPrivate.h>
|
||||
#include <TokenSpace.h>
|
||||
#include <InterfaceDefs.h>
|
||||
|
||||
#include "BMCPrivate.h"
|
||||
|
||||
@@ -337,10 +338,17 @@ BMenuBar::MouseDown(BPoint where)
|
||||
if (fTracking)
|
||||
return;
|
||||
|
||||
BWindow* window = Window();
|
||||
if (!window->IsActive() || !window->IsFront()) {
|
||||
window->Activate();
|
||||
window->UpdateIfNeeded();
|
||||
uint32 buttons;
|
||||
GetMouse(&where, &buttons);
|
||||
|
||||
BWindow* window = Window();
|
||||
if (!window->IsActive() || !window->IsFront()) {
|
||||
if ((mouse_mode() == B_FOCUS_FOLLOWS_MOUSE)
|
||||
|| ((mouse_mode() == B_CLICK_TO_FOCUS_MOUSE)
|
||||
&& ((buttons & B_SECONDARY_MOUSE_BUTTON) != 0))) {
|
||||
window->Activate();
|
||||
window->UpdateIfNeeded();
|
||||
}
|
||||
}
|
||||
|
||||
StartMenuBar(-1, false, false);
|
||||
|
||||
Reference in New Issue
Block a user