From a937ffd238367dee5036096658c6c360c1e23136 Mon Sep 17 00:00:00 2001 From: czeidler Date: Tue, 1 May 2012 10:59:22 +1200 Subject: [PATCH] Make the menu window not resizable. Right clicking the menu border showed the resize arrow and sometimes even made it possible to resize the menu. --- src/kits/interface/MenuWindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/kits/interface/MenuWindow.cpp b/src/kits/interface/MenuWindow.cpp index ad29e64361..b568f75c48 100644 --- a/src/kits/interface/MenuWindow.cpp +++ b/src/kits/interface/MenuWindow.cpp @@ -233,7 +233,8 @@ BMenuFrame::Draw(BRect updateRect) if (be_control_look != NULL) return; - SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), B_DARKEN_2_TINT)); + SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), + B_DARKEN_2_TINT)); BRect bounds(Bounds()); StrokeLine(BPoint(bounds.right, bounds.top), @@ -249,8 +250,9 @@ BMenuFrame::Draw(BRect updateRect) BMenuWindow::BMenuWindow(const char *name) // The window will be resized by BMenu, so just pass a dummy rect - : BWindow(BRect(0, 0, 0, 0), name, B_BORDERED_WINDOW_LOOK, kMenuWindowFeel, - B_NOT_MOVABLE | B_NOT_ZOOMABLE | B_AVOID_FOCUS + : + BWindow(BRect(0, 0, 0, 0), name, B_BORDERED_WINDOW_LOOK, kMenuWindowFeel, + B_NOT_MOVABLE | B_NOT_ZOOMABLE | B_NOT_RESIZABLE | B_AVOID_FOCUS | kAcceptKeyboardFocusFlag), fMenu(NULL), fMenuFrame(NULL),