From 88b25a7da970e034e24ec8f7fb7ad232344f7872 Mon Sep 17 00:00:00 2001 From: stippi Date: Thu, 22 Apr 2010 21:22:06 +0000 Subject: [PATCH] Add a small hack to fix the invalidation glitches in the menu bar when resizing the window. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@453 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/BrowserWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apps/webpositive/BrowserWindow.cpp b/src/apps/webpositive/BrowserWindow.cpp index cd13d89309..a3a4043495 100644 --- a/src/apps/webpositive/BrowserWindow.cpp +++ b/src/apps/webpositive/BrowserWindow.cpp @@ -342,6 +342,10 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings, .Add(statusGroup) ); + // TODO: Small hack for fixing some invalidation problems with BMenuBar... + mainMenu->SetFlags(mainMenu->Flags() | B_FULL_UPDATE_ON_RESIZE); + mainMenu->SetViewColor(B_TRANSPARENT_COLOR); + fURLInputGroup->MakeFocus(true); fMenuGroup = layoutItemFor(mainMenu);