[client] wayland: invalidate window on configure

This avoids sending potentially meaningless damage values after a surface
configuration event.
This commit is contained in:
Quantum 2021-07-25 01:35:44 -04:00 committed by Geoffrey McRae
parent 3905834807
commit e7761abf3c
2 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@ static void libdecorFrameConfigure(struct libdecor_frame * frame,
{ {
wlWm.needsResize = true; wlWm.needsResize = true;
wlWm.resizeSerial = configuration->serial; wlWm.resizeSerial = configuration->serial;
app_invalidateWindow();
} }
else else
wlWm.configured = true; wlWm.configured = true;

View File

@ -46,6 +46,7 @@ static void xdgSurfaceConfigure(void * data, struct xdg_surface * xdgSurface,
{ {
wlWm.needsResize = true; wlWm.needsResize = true;
wlWm.resizeSerial = serial; wlWm.resizeSerial = serial;
app_invalidateWindow();
} }
else else
{ {