diff options
Diffstat (limited to 'src/desktop/Window.cpp')
| -rw-r--r-- | src/desktop/Window.cpp | 10 |
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; +} |
