summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-05-18 19:34:14 +0200
committerVaxry <vaxry@vaxry.net>2025-05-18 19:34:20 +0200
commitd9c8a378118d954932eb9906b07150ccd9a3a434 (patch)
tree018b2532fbde016d1791467ae77d3c1196819f63 /src/desktop/Window.cpp
parent158c0f2911894f5f97af7361f639f97f6d100c82 (diff)
input: always allow focus to permission popups
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index 7ef54da0..9f69e364 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -1836,3 +1836,7 @@ PHLWINDOW CWindow::parent() {
return m_xdgSurface->m_toplevel->m_parent->m_window.lock();
}
+
+bool CWindow::priorityFocus() {
+ return !m_isX11 && CAsyncDialogBox::isPriorityDialogBox(getPID());
+}