qt(wayland): fix video widget failing to display video.
commiteb375bf9583eed0a1a588ee9d436a2219e2809f8
authorErwan Tulou <erwan10@videolan.org>
Sun, 10 Dec 2017 18:00:15 +0000 (10 19:00 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 13 Dec 2017 23:52:12 +0000 (14 00:52 +0100)
tree240a7462ef8b98d7831ec575f366817588e5ecde
parent067e582bd813e7d2038610df561c83afa0e6b9a0
qt(wayland): fix video widget failing to display video.

Setting Qt:WA_DontCreateNativeAncestors in addition to Qt::WA_NativeWindow
tells qt to create a native window for the widget and only for the widget.

For Wayland, this resulted in one single wayland subsurface instead of a
tree of nested subsurfaces. Wayland is a bit convoluted when it comes to
mapping/unmapping nested subsurfaces, which accounted for the video failing
to be displayed.

For X11, on the contrary, setting Qt:WA_DontCreateNativeAncestors proved
wrong with some misplacement in the video. So, this parameter is set
*** ONLY *** in a Wayland context.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt/components/interface_widgets.cpp