Skip to content

Commit

Permalink
dont order windows after applying frame on ventura
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixKratz committed Nov 11, 2022
1 parent b449915 commit 907001f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,13 @@ bool window_apply_frame(struct window* window) {
CFRelease(frame_region);
window_move(window, window->origin);

if (__builtin_available(macOS 13.0, *)) {
CGContextClearRect(window->context, window->frame);
CGContextFlush(window->context);
window_order(window, window->parent, window->order_mode);
} else if (window->parent) {
if (window->parent) {
CGContextClearRect(window->context, window->frame);
CGContextFlush(window->context);
window_order(window, window->parent, window->order_mode);
if (__builtin_available(macOS 13.0, *)) {
} else if (window->parent) {
window_order(window, window->parent, window->order_mode);
}
}

window->needs_move = false;
Expand Down

0 comments on commit 907001f

Please sign in to comment.