fix popup topmost property not really working on Ventura (#311)

This commit is contained in:
Felix Kratz 2023-01-08 14:37:50 +01:00
parent 3e5998ec14
commit cf77e0abf9

View file

@ -43,7 +43,7 @@ static bool popup_set_blur_radius(struct popup* popup, uint32_t radius) {
static void popup_order_windows(struct popup* popup) {
int level = popup->topmost
? kCGScreenSaverWindowLevel
: kCGNormalWindowLevel;
: kCGNormalWindowLevel - 1;
window_set_level(&popup->window, level);
window_order(&popup->window, NULL, W_ABOVE);