vlc | branch: master | Erwan Tulou <[email protected]> | Thu Jan 11 17:33:00 
2018 +0100| [4bc6943b8d53317bf18c32ae2a98955277f7a818] | committer: Erwan Tulou

skins2(x11): fix skin being truncated on Gnome

Ensure the window size is updated before applying a mask.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4bc6943b8d53317bf18c32ae2a98955277f7a818
---

 modules/gui/skins2/x11/x11_graphics.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/gui/skins2/x11/x11_graphics.cpp 
b/modules/gui/skins2/x11/x11_graphics.cpp
index b6e5cbe23c..b6a34f2bdb 100644
--- a/modules/gui/skins2/x11/x11_graphics.cpp
+++ b/modules/gui/skins2/x11/x11_graphics.cpp
@@ -321,6 +321,9 @@ void X11Graphics::applyMaskToWindow( OSWindow &rWindow )
     // Get the target window
     Window win = ((X11Window&)rWindow).getDrawable();
 
+    // ensure the window size is right
+    XResizeWindow( XDISPLAY, win, m_width, m_height );
+
     // Change the shape of the window
     XShapeCombineRegion( XDISPLAY, win, ShapeBounding, 0, 0, m_mask,
                          ShapeSet );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to