summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-03-25 16:08:55 +0000
committerVaxry <vaxry@vaxry.net>2024-03-25 16:09:02 +0000
commitca17a89d86b73f37019c4cc0c7087303adbcc1f9 (patch)
treeedbaabbc0a73109465228f7d5270e5163c6b6ca6 /src/desktop/Window.cpp
parent356414639fc06ace7045236ec41d673342981057 (diff)
renderer: allow blurring ls popups
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index 3145000c..9151d57e 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -1151,3 +1151,13 @@ void CWindow::setAnimationsToMove() {
m_vRealSize.setConfig(PANIMCFG);
m_bAnimatingIn = false;
}
+
+int CWindow::popupsCount() {
+ if (m_bIsX11)
+ return 1;
+
+ int no = 0;
+ wlr_xdg_surface_for_each_popup_surface(
+ m_uSurface.xdg, [](wlr_surface* s, int x, int y, void* data) { *(int*)data += 1; }, &no);
+ return no;
+}