mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-10 05:44:16 +00:00
on a forced redraw, also force the windows to set their frames
This commit is contained in:
parent
412540a5af
commit
af6c7fc173
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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, *)) {
|
||||
|
|
Loading…
Reference in a new issue