Revert "reintroduce transactional window level on Sonoma"

This reverts commit ef9018bd3f.
This commit is contained in:
Felix Kratz 2023-10-09 11:39:32 +02:00
parent cda89f3ce2
commit 40152c054c

View file

@ -190,14 +190,7 @@ void window_close(struct window* window) {
void window_set_level(struct window* window, uint32_t level) { void window_set_level(struct window* window, uint32_t level) {
windows_freeze(); windows_freeze();
SLSSetWindowLevel(g_connection, window->id, level);
if (__builtin_available(macOS 14.0, *)) {
// Sonoma and later
SLSTransactionSetWindowLevel(g_transaction, window->id, level);
} else {
// Ventura and previous
SLSSetWindowLevel(g_connection, window->id, level);
}
} }
void window_order(struct window* window, struct window* parent, int mode) { void window_order(struct window* window, struct window* parent, int mode) {