Commit 4bc6943b authored by Erwan Tulou's avatar Erwan Tulou

skins2(x11): fix skin being truncated on Gnome

Ensure the window size is updated before applying a mask.
parent 73488622
......@@ -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 );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment