From e473e9b49a6347d5348cc504d4f2fb4e6fc323d2 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Sat, 24 Jun 2017 08:58:50 +0200 Subject: [PATCH] Add patch --- 0001-qt-Prefer-XCB-over-Wayland.patch | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 0001-qt-Prefer-XCB-over-Wayland.patch diff --git a/0001-qt-Prefer-XCB-over-Wayland.patch b/0001-qt-Prefer-XCB-over-Wayland.patch new file mode 100644 index 0000000..71872c0 --- /dev/null +++ b/0001-qt-Prefer-XCB-over-Wayland.patch @@ -0,0 +1,43 @@ +From 781dee40c6f32941207322561ebab7166a90569c Mon Sep 17 00:00:00 2001 +From: Martin Briza +Date: Fri, 23 Jun 2017 16:30:09 +0200 +Subject: [PATCH] qt: Prefer XCB over Wayland + +Wayland users now have no choice (except setting WAYLAND_DISPLAY to '') how to avoid getting VLC under Wayland which may not be optimal yet. + +This patch ensures the XCB backend is preferred. This means the developers who want to work on Wayland support will have to clear their DISPLAY variable instead. + +Related to https://trac.videolan.org/vlc/ticket/18383 . +--- + modules/gui/qt/qt.cpp | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/modules/gui/qt/qt.cpp b/modules/gui/qt/qt.cpp +index 2ad68eb401..3224361ecb 100644 +--- a/modules/gui/qt/qt.cpp ++++ b/modules/gui/qt/qt.cpp +@@ -411,16 +411,16 @@ static int Open( vlc_object_t *p_this, bool isDialogProvider ) + intf_thread_t *p_intf = (intf_thread_t *)p_this; + void *(*thread)(void *) = Thread; + +-#ifdef QT5_HAS_WAYLAND +- if( HasWayland() ) +- thread = ThreadWayland; +- else +-#endif + #ifdef QT5_HAS_X11 + if( HasX11( p_this ) ) + thread = ThreadXCB; + else + #endif ++#ifdef QT5_HAS_WAYLAND ++ if( HasWayland() ) ++ thread = ThreadWayland; ++ else ++#endif + #if defined (QT5_HAS_X11) || defined (QT5_HAS_WAYLAND) + return VLC_EGENERIC; + #endif +-- +2.13.0 +