diff options
author | Vaxry <[email protected]> | 2024-03-25 16:20:30 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-03-25 16:20:30 +0000 |
commit | ae17e900e720430c7848faf1b6e21b5f352c26ca (patch) | |
tree | 32b2a0e96a78f3c487f9d2bad96492bc6fb49719 /src/helpers/WLClasses.cpp | |
parent | ca17a89d86b73f37019c4cc0c7087303adbcc1f9 (diff) | |
download | Hyprland-ae17e900e720430c7848faf1b6e21b5f352c26ca.tar.gz Hyprland-ae17e900e720430c7848faf1b6e21b5f352c26ca.zip |
layer-shell: render popups above everything
Diffstat (limited to 'src/helpers/WLClasses.cpp')
-rw-r--r-- | src/helpers/WLClasses.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helpers/WLClasses.cpp b/src/helpers/WLClasses.cpp index e7ae69c0..5e18c274 100644 --- a/src/helpers/WLClasses.cpp +++ b/src/helpers/WLClasses.cpp @@ -171,6 +171,9 @@ bool SLayerSurface::isFadedOut() { } int SLayerSurface::popupsCount() { + if (!layerSurface || !mapped || fadingOut) + return 0; + int no = 0; wlr_layer_surface_v1_for_each_popup_surface( layerSurface, [](wlr_surface* s, int x, int y, void* data) { *(int*)data += 1; }, &no); |