summaryrefslogtreecommitdiff
path: root/libre/smplayer/smplayer-dock-playlist-qt5.patch
blob: e6fa53c8de5d098615e121f442d933627aeae4bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- src/guiconfig.h.orig	2016-05-05 17:05:45.131333069 +0200
+++ src/guiconfig.h	2016-05-05 17:05:17.883829511 +0200
@@ -19,12 +19,21 @@
 #ifndef GUICONFIG_H
 #define GUICONFIG_H
 
+#include <QtGlobal>
 
 // DOCK_PLAYLIST
 // if 1, the playlist will be docked in the main window, instead
 // of being a top level window
-
+#ifdef Q_OS_WIN
 #define DOCK_PLAYLIST 1
+#else
+  #if QT_VERSION >= 0x050000
+  // There's problems with the playlist with Qt5 when using compiz
+  #define DOCK_PLAYLIST 0
+  #else
+  #define DOCK_PLAYLIST 1
+  #endif
+#endif
 
 
 // AUTODISABLE_ACTIONS