mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-07-18 13:04:21 -04:00
Guard against calling set_size while applying a configure event more explicitly
Depending on code path taken, geometry.size() == m_pendingSize can produce incorrect results. If a configure event is applied, it's fine. If the window is resized by user, m_pendingSize will have outdated value, and setWindowGeometry() can ignore future size updates that are valid. In hindsight, we need special hooks in the QWaylandWindow to request and apply new geometry. Rather than have one function that deals with all cases.
This commit is contained in:
@ -62,6 +62,7 @@ private:
|
||||
QString m_activationToken;
|
||||
|
||||
bool m_configured = false;
|
||||
bool m_configuring = false;
|
||||
|
||||
static const wl_callback_listener syncCallbackListener;
|
||||
struct wl_callback *m_waitForSyncCallback = nullptr;
|
||||
|
Reference in New Issue
Block a user