summaryrefslogtreecommitdiff
path: root/libre/smplayer/smplayer-dock-playlist-qt5.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/smplayer/smplayer-dock-playlist-qt5.patch')
-rw-r--r--libre/smplayer/smplayer-dock-playlist-qt5.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/libre/smplayer/smplayer-dock-playlist-qt5.patch b/libre/smplayer/smplayer-dock-playlist-qt5.patch
new file mode 100644
index 000000000..e6fa53c8d
--- /dev/null
+++ b/libre/smplayer/smplayer-dock-playlist-qt5.patch
@@ -0,0 +1,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