mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Fix Qt5 build on non-apple, non-win without x11extras
This commit is contained in:
@@ -41,8 +41,8 @@
|
||||
#include <QDesktopServices>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
||||
#include <QWindow>
|
||||
#ifdef HAVE_X11
|
||||
#include <QWindow>
|
||||
#include <QX11Info>
|
||||
#endif
|
||||
#else
|
||||
@@ -365,9 +365,11 @@ bringToFront()
|
||||
// "Unminimize" first, otherwise the entry in the taskbar will only flash but the window won't come to front
|
||||
widget->windowHandle()->showNormal();
|
||||
|
||||
#ifdef HAVE_X11
|
||||
if ( QX11Info::isPlatformX11() ) {
|
||||
QX11Info::setAppTime( QX11Info::getTimestamp() );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user