hyprland/focus_grab: wait for surface creation if null

Fixes an occasional crash with QWaylandWindow::surface() returning null.
This commit is contained in:
outfoxxed 2024-08-20 16:41:04 -07:00
parent fe1d15e8f6
commit f95e7dbaf6
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 37 additions and 7 deletions

View file

@ -28,6 +28,8 @@ public:
void addWindow(QWindow* window);
void removeWindow(QWindow* window);
void sync();
void startTransaction();
void completeTransaction();
signals:
void activated();
@ -40,6 +42,7 @@ private:
QList<QWaylandWindow*> pendingAdditions;
bool commitRequired = false;
bool transactionActive = false;
bool active = false;
};