[vlc-commits] skins2(x11): fix skin being truncated on Gnome

Erwan Tulou git at videolan.org
Fri Jan 12 00:30:06 CET 2018


vlc/vlc-3.0 | branch: master | Erwan Tulou <erwan10 at videolan.org> | Thu Jan 11 17:33:00 2018 +0100| [f50118b046c38feeffd5a6a54c8b25bf1877a35b] | committer: Erwan Tulou

skins2(x11): fix skin being truncated on Gnome

Ensure the window size is updated before applying a mask.

(cherry picked from commit 4bc6943b8d53317bf18c32ae2a98955277f7a818)
Signed-off-by: Erwan Tulou <erwan10 at videolan.org>

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

 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 );



More information about the vlc-commits mailing list