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