Skip to content

Commit

Permalink
#148 fix ordering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Sep 22, 2022
1 parent f99f174 commit 1924a6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/osax/payload.m
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ static void do_window_order_swap(char *message)
if (!b_wid) return;

CFTypeRef transaction = SLSTransactionCreate(_connection);
SLSTransactionOrderWindow(transaction, a_wid, 1, b_wid);
SLSTransactionOrderWindow(transaction, a_wid, -1, b_wid);
SLSTransactionOrderWindow(transaction, b_wid, 0, 0);
SLSTransactionCommit(transaction, 0);
CFRelease(transaction);
Expand Down
2 changes: 1 addition & 1 deletion src/window_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ void window_manager_animate_window_list_async(struct window_capture *window_list
window_manager_create_window_proxy(context->animation_connection, context->animation_list[i].wid, &context->animation_list[i].proxy);

CFTypeRef transaction = SLSTransactionCreate(context->animation_connection);
SLSTransactionOrderWindow(transaction, context->animation_list[i].proxy.id, 1, existing_animation->proxy.id);
SLSTransactionOrderWindow(transaction, context->animation_list[i].proxy.id, -1, existing_animation->proxy.id);
SLSTransactionOrderWindow(transaction, existing_animation->proxy.id, 0, 0);
SLSTransactionCommit(transaction, 0);
CFRelease(transaction);
Expand Down

0 comments on commit 1924a6d

Please sign in to comment.