Only damage view again on commit if it resized
@@ -63,10 +63,10 @@ static void wc_xdg_surface_commit(struct wl_listener* listener, void* data) {
if (pending_serial == surface->configure_serial) {
view->pending_serial = 0;
}
- }
wc_view_damage_whole(view);
}
+}
static void wc_xdg_surface_destroy(struct wl_listener* listener, void* data) {
struct wc_view* view = wl_container_of(listener, view, destroy);
