diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-05-18 19:34:14 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-05-18 19:34:20 +0200 |
| commit | d9c8a378118d954932eb9906b07150ccd9a3a434 (patch) | |
| tree | 018b2532fbde016d1791467ae77d3c1196819f63 /src/helpers/AsyncDialogBox.hpp | |
| parent | 158c0f2911894f5f97af7361f639f97f6d100c82 (diff) | |
input: always allow focus to permission popups
Diffstat (limited to 'src/helpers/AsyncDialogBox.hpp')
| -rw-r--r-- | src/helpers/AsyncDialogBox.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/helpers/AsyncDialogBox.hpp b/src/helpers/AsyncDialogBox.hpp index 4018a857..0ee0144e 100644 --- a/src/helpers/AsyncDialogBox.hpp +++ b/src/helpers/AsyncDialogBox.hpp @@ -16,6 +16,7 @@ class CAsyncDialogBox { public: static SP<CAsyncDialogBox> create(const std::string& title, const std::string& description, std::vector<std::string> buttons); static bool isAsyncDialogBox(pid_t pid); + static bool isPriorityDialogBox(pid_t pid); CAsyncDialogBox(const CAsyncDialogBox&) = delete; CAsyncDialogBox(CAsyncDialogBox&&) = delete; @@ -26,7 +27,10 @@ class CAsyncDialogBox { void kill(); bool isRunning() const; - void onWrite(int fd, uint32_t mask); + // focus priority, only permission popups + bool m_priority = false; + + void onWrite(int fd, uint32_t mask); private: CAsyncDialogBox(const std::string& title, const std::string& description, std::vector<std::string> buttons); |
