* Found out what the overridden DispatchMessage() is supposed to do.

* Disabled activating the window on mouse click when auto-raise is active, as that
  doesn't work well in combination.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21958 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-08-15 00:18:13 +00:00
parent 78fe3db271
commit 0a201be444
+4 -2
View File
@@ -92,8 +92,10 @@ TBarWindow::TBarWindow()
void
TBarWindow::DispatchMessage(BMessage *message, BHandler *handler)
{
// ToDo: check if the two following lines are doing anything...
if (message->what == B_MOUSE_DOWN)
// Activate the window when you click on it (ie. on the tray area,
// the menu part will do this automatically)
if (message->what == B_MOUSE_DOWN
&& !((TBarApp *)be_app)->Settings()->autoRaise)
Activate(true);
BWindow::DispatchMessage(message, handler);