forked from quickshell/quickshell
hyprland/focus_grab: wait for surface creation if null
Fixes an occasional crash with QWaylandWindow::surface() returning null.
This commit is contained in:
parent
fe1d15e8f6
commit
f95e7dbaf6
3 changed files with 37 additions and 7 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue