From e7761abf3c138b649fda6c56cc6ce5ac48b2c807 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 25 Jul 2021 01:35:44 -0400 Subject: [PATCH] [client] wayland: invalidate window on configure This avoids sending potentially meaningless damage values after a surface configuration event. --- client/displayservers/Wayland/shell_libdecor.c | 1 + client/displayservers/Wayland/shell_xdg.c | 1 + 2 files changed, 2 insertions(+) diff --git a/client/displayservers/Wayland/shell_libdecor.c b/client/displayservers/Wayland/shell_libdecor.c index 531abf7c..1f257bdb 100644 --- a/client/displayservers/Wayland/shell_libdecor.c +++ b/client/displayservers/Wayland/shell_libdecor.c @@ -69,6 +69,7 @@ static void libdecorFrameConfigure(struct libdecor_frame * frame, { wlWm.needsResize = true; wlWm.resizeSerial = configuration->serial; + app_invalidateWindow(); } else wlWm.configured = true; diff --git a/client/displayservers/Wayland/shell_xdg.c b/client/displayservers/Wayland/shell_xdg.c index adb44531..144537bc 100644 --- a/client/displayservers/Wayland/shell_xdg.c +++ b/client/displayservers/Wayland/shell_xdg.c @@ -46,6 +46,7 @@ static void xdgSurfaceConfigure(void * data, struct xdg_surface * xdgSurface, { wlWm.needsResize = true; wlWm.resizeSerial = serial; + app_invalidateWindow(); } else {