diff --git a/src/libtomahawk/utils/TomahawkUtilsGui.cpp b/src/libtomahawk/utils/TomahawkUtilsGui.cpp index 36135f953..0e2e5c3b0 100644 --- a/src/libtomahawk/utils/TomahawkUtilsGui.cpp +++ b/src/libtomahawk/utils/TomahawkUtilsGui.cpp @@ -41,8 +41,8 @@ #include #if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 ) + #include #ifdef HAVE_X11 - #include #include #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 }