on a forced redraw, also force the windows to set their frames

This commit is contained in:
Felix Kratz 2023-11-04 22:24:18 +01:00
parent 412540a5af
commit af6c7fc173
2 changed files with 2 additions and 2 deletions

View file

@ -177,7 +177,7 @@ void bar_draw(struct bar* bar, bool forced) {
bar );
}
if (!window_apply_frame(window, false) && !bar_item->needs_update)
if (!window_apply_frame(window, forced) && !bar_item->needs_update)
continue;
if (bar_item->update_mask & UPDATE_MOUSE_ENTERED

View file

@ -129,7 +129,7 @@ void window_move(struct window* window, CGPoint point) {
bool window_apply_frame(struct window* window, bool forced) {
windows_freeze();
if (window->needs_resize) {
if (window->needs_resize || forced) {
CFTypeRef frame_region = window_create_region(window, window->frame);
if (__builtin_available(macOS 13.0, *)) {