diff --git a/CMakeLists.txt b/CMakeLists.txt
index 074d0263e7..367e6208fe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -498,6 +498,7 @@ ecm_qt_declare_logging_category(kwin_KDEINIT_SRCS
)
if(KWIN_BUILD_TABBOX)
+ include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})
set(
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
tabbox/tabbox.cpp
diff --git a/tabbox/tabboxhandler.cpp b/tabbox/tabboxhandler.cpp
index c14010ea9d..501ef2d093 100644
--- a/tabbox/tabboxhandler.cpp
+++ b/tabbox/tabboxhandler.cpp
@@ -42,6 +42,7 @@ along with this program. If not, see .
#include
#include
#include
+#include
// KDE
#include
#include
@@ -344,6 +345,8 @@ void TabBoxHandlerPrivate::show()
if (QWindow *w = window()) {
wheelAngleDelta = 0;
w->installEventFilter(q);
+ // pretend to activate the window to enable accessibility notifications
+ QWindowSystemInterface::handleWindowActivated(w, Qt::TabFocusReason);
}
#endif
}