diff --git a/src/hook/platform/xlib/widgethighlighter_x11.h b/src/hook/platform/xlib/widgethighlighter_x11.h index 46290ad43b..79e2f367a0 100644 --- a/src/hook/platform/xlib/widgethighlighter_x11.h +++ b/src/hook/platform/xlib/widgethighlighter_x11.h @@ -23,6 +23,7 @@ #define SQ_WIDGETHIGHLIGHTER_X11_H #include +#include #include #include diff --git a/src/wrappers/qt/qwindowinteractiondelegate.cpp b/src/wrappers/qt/qwindowinteractiondelegate.cpp index 1fb4c48f0c..791e43ab64 100644 --- a/src/wrappers/qt/qwindowinteractiondelegate.cpp +++ b/src/wrappers/qt/qwindowinteractiondelegate.cpp @@ -154,12 +154,12 @@ static void postFakeWindowActivation( QWindow *window ) { assert( window ); # if QT_VERSION >= 0x050100 - QWindowSystemInterfacePrivate::ActivatedWindowEvent e( window, Qt::OtherFocusReason ); + QWindowSystemInterfacePrivate::FocusWindowEvent e( window, Qt::OtherFocusReason ); # else - QWindowSystemInterfacePrivate::ActivatedWindowEvent e( window ); + QWindowSystemInterfacePrivate::FocusWindowEvent e( window ); # endif QGuiApplicationPrivate::processWindowSystemEvent( &e ); - QWindowSystemInterface::handleWindowActivated( window ); + QWindowSystemInterface::handleFocusWindowChanged( window ); } static void tryWindowRequestActivate( QWindow *window, const int timeout ) diff --git a/src/wrappers/qt/replay/faketouchdevice.h b/src/wrappers/qt/replay/faketouchdevice.h index 17f53f46cd..30bfbca050 100644 --- a/src/wrappers/qt/replay/faketouchdevice.h +++ b/src/wrappers/qt/replay/faketouchdevice.h @@ -22,8 +22,6 @@ #ifndef REPLAY_FAKETOUCHDEVICE_H #define REPLAY_FAKETOUCHDEVICE_H -#include - #if ( QT_VERSION >= 0x060000 ) #include #elif ( QT_VERSION >= 0x050000 )