Fix window size not always being hidden after a resize

This commit is contained in:
Kovid Goyal 2023-06-07 16:41:08 +05:30
parent 3ae489b151
commit 162faa42be
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1017,9 +1017,9 @@ process_pending_resizes(monotonic_t now) {
}
}
if (update_viewport) {
static const LiveResizeInfo empty = {0};
update_os_window_viewport(w, true);
w->live_resize = empty;
zero_at_ptr(&w->live_resize);
w->is_damaged = true; // because the window size should be hidden even if update_os_window_viewport does nothing
}
}
}