From 0a201be444cf2248a29e63a4e100ab3e6456fd0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 15 Aug 2007 00:18:13 +0000 Subject: [PATCH] * 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 --- src/apps/deskbar/BarWindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/apps/deskbar/BarWindow.cpp b/src/apps/deskbar/BarWindow.cpp index 60227e0c59..cbf2d42f9b 100644 --- a/src/apps/deskbar/BarWindow.cpp +++ b/src/apps/deskbar/BarWindow.cpp @@ -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);