From e7bd43d9ca7bef43777c1670353f04c6d9762a2f Mon Sep 17 00:00:00 2001 From: stippi Date: Mon, 22 Feb 2010 13:36:46 +0000 Subject: [PATCH] Place the thread priority tweak somewhere where it actually works. This makes HaikuLauncher totally usable under heavy system load. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@174 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/LauncherApp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/webpositive/LauncherApp.cpp b/src/apps/webpositive/LauncherApp.cpp index 5b60e09a66..04d0b5650b 100644 --- a/src/apps/webpositive/LauncherApp.cpp +++ b/src/apps/webpositive/LauncherApp.cpp @@ -59,8 +59,6 @@ LauncherApp::LauncherApp() , m_initialized(false) , m_downloadWindow(0) { - // Since we will essentially run the GUI... - set_thread_priority(Thread(), B_DISPLAY_PRIORITY); } LauncherApp::~LauncherApp() @@ -92,6 +90,9 @@ void LauncherApp::ArgvReceived(int32 argc, char** argv) void LauncherApp::ReadyToRun() { + // Since we will essentially run the GUI... + set_thread_priority(Thread(), B_DISPLAY_PRIORITY); + BWebPage::InitializeOnce(); BWebPage::SetCacheModel(B_WEBKIT_CACHE_MODEL_WEB_BROWSER);