window: make AsyncDialogBoxes not closeable

we don't want the user to accidentally close a popup for permissions or ANR. They can dismiss them by clicking an appropriate option.
This commit is contained in:
Vaxry 2025-04-29 18:20:06 +01:00
parent b10a43dabc
commit 465e3d979d
No known key found for this signature in database
GPG key ID: 665806380871D640
3 changed files with 16 additions and 0 deletions

View file

@ -15,6 +15,7 @@ struct wl_event_source;
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);
CAsyncDialogBox(const CAsyncDialogBox&) = delete;
CAsyncDialogBox(CAsyncDialogBox&&) = delete;