winex11: Update the window shape offset when the window rect changes.
This commit is contained in:
parent
ffc100c58f
commit
4c7b8ca524
@ -1326,6 +1326,15 @@ static void sync_window_position( Display *display, struct x11drv_win_data *data
|
|||||||
data->configure_serial = NextRequest( display );
|
data->configure_serial = NextRequest( display );
|
||||||
XReconfigureWMWindow( display, data->whole_window,
|
XReconfigureWMWindow( display, data->whole_window,
|
||||||
DefaultScreen(display), mask, &changes );
|
DefaultScreen(display), mask, &changes );
|
||||||
|
#ifdef HAVE_LIBXSHAPE
|
||||||
|
if (data->shaped)
|
||||||
|
{
|
||||||
|
int x_offset = old_whole_rect->left - data->whole_rect.left;
|
||||||
|
int y_offset = old_whole_rect->top - data->whole_rect.top;
|
||||||
|
if (x_offset || y_offset)
|
||||||
|
XShapeOffsetShape( display, data->whole_window, ShapeBounding, x_offset, y_offset );
|
||||||
|
}
|
||||||
|
#endif
|
||||||
wine_tsx11_unlock();
|
wine_tsx11_unlock();
|
||||||
|
|
||||||
TRACE( "win %p/%lx pos %d,%d,%dx%d after %lx changes=%x serial=%lu\n",
|
TRACE( "win %p/%lx pos %d,%d,%dx%d after %lx changes=%x serial=%lu\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user