From d85e59fe92be758bd79dcf32e6b5d9f5ceadb38d Mon Sep 17 00:00:00 2001 From: Felix Rohrbach Date: Mon, 4 Apr 2011 23:40:14 +0200 Subject: Make rekonq desktop aware If there is a rekonq window on the current virtual desktop and another application opens a link, rekonq will prefer this window. rekonq also prefers windows that were activated most recently. CCBUG: 237732 REVIEW: 101033 --- src/application.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/application.h') diff --git a/src/application.h b/src/application.h index 3cd3c96b..d3757645 100644 --- a/src/application.h +++ b/src/application.h @@ -134,6 +134,10 @@ public slots: void newWindow(); void removeMainWindow(MainWindow *window); +protected: + // This is used to track which window was activated most recently + bool eventFilter(QObject *watched, QEvent *event); + private slots: /** * Any actions that can be delayed until the window is visible -- cgit v1.2.1