diff options
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index 2c800036..b794007f 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -40,6 +40,7 @@ #include "searchengine.h" #include "websnap.h" #include "iconmanager.h" +#include "urlbar.h" // KDE Includes #include <KService> @@ -407,15 +408,17 @@ void WebView::mouseMoveEvent(QMouseEvent *event) return; } - if (Application::instance()->mainWindow()->isFullScreen()) + MainWindow *w = Application::instance()->mainWindow(); + if (w->isFullScreen()) { if (event->pos().y() >= 0 && event->pos().y() <= 4) { - Application::instance()->mainWindow()->setWidgetsVisible(true); + w->setWidgetsVisible(true); } else { - Application::instance()->mainWindow()->setWidgetsVisible(false); + if(!w->mainView()->urlBar()->hasFocus()) + w->setWidgetsVisible(false); } } KWebView::mouseMoveEvent(event); |