1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01:00

Fix Qt5 build on non-apple, non-win without x11extras

This commit is contained in:
Dominik Schmidt 2015-02-05 03:49:09 +01:00
parent b089a3ee4e
commit f3b1fa9402

View File

@ -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
}