sticky on Sonoma is enforced in bar_manager

This commit is contained in:
Felix Kratz 2024-01-31 18:35:27 +01:00
parent 0e0bf707e8
commit 7d121d55e2

View file

@ -26,11 +26,7 @@ void window_create(struct window* window, CGRect frame) {
uint64_t set_tags = kCGSExposeFadeTagBit;
uint64_t clear_tags = 0;
// Sonoma and up is always sticky.
if (__builtin_available(macOS 14.0, *)) {
set_tags |= kCGSStickyTagBit;
clear_tags = kCGSSuperStickyTagBit;
} else if (g_bar_manager.sticky) {
if (g_bar_manager.sticky) {
set_tags |= kCGSStickyTagBit;
clear_tags = kCGSSuperStickyTagBit;
}