diff --git a/src/osax/payload.m b/src/osax/payload.m index 00065042..4133eb0f 100644 --- a/src/osax/payload.m +++ b/src/osax/payload.m @@ -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); diff --git a/src/window_manager.c b/src/window_manager.c index bab427cd..acd335c4 100644 --- a/src/window_manager.c +++ b/src/window_manager.c @@ -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);