Skip to content
  • Erwan Tulou's avatar
    qt(wayland): fix video widget failing to display video. · 84411907
    Erwan Tulou authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
    
    
    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: default avatarJean-Baptiste Kempf <jb@videolan.org>
    (cherry picked from commit eb375bf9
    
    )
    Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
    84411907