server: Update window surface regions when the window is shaped.

This commit is contained in:
Rémi Bernon 2024-04-26 14:35:50 +02:00 committed by Alexandre Julliard
parent 046d55ab6a
commit ee8f0b6c5d

View file

@ -2485,7 +2485,8 @@ DECL_HANDLER(set_window_pos)
if (is_visible( top ) && (top->paint_flags & PAINT_HAS_SURFACE)) if (is_visible( top ) && (top->paint_flags & PAINT_HAS_SURFACE))
{ {
reply->surface_win = top->handle; reply->surface_win = top->handle;
reply->needs_update = !!(top->paint_flags & (PAINT_HAS_PIXEL_FORMAT | PAINT_PIXEL_FORMAT_CHILD)); reply->needs_update = !!(top->paint_flags & (PAINT_HAS_PIXEL_FORMAT | PAINT_PIXEL_FORMAT_CHILD)) ||
!!top->win_region;
} }
} }