Commit 4fbb777a authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Store buffer geometry during geometry updates

The stored buffer geometry can be useful for detecting whether the
buffer geometry has been changed.

Test Plan: Compiles.

Reviewers: #kwin, romangg

Reviewed By: #kwin, romangg

Subscribers: kwin

Tags: #kwin

Differential Revision:
parent e2f82d79
......@@ -1306,6 +1306,11 @@ void AbstractClient::addRepaintDuringGeometryUpdates()
m_visibleRectBeforeGeometryUpdate = deco_rect;
QRect AbstractClient::bufferGeometryBeforeUpdateBlocking() const
return m_bufferGeometryBeforeUpdateBlocking;
QRect AbstractClient::frameGeometryBeforeUpdateBlocking() const
return m_frameGeometryBeforeUpdateBlocking;
......@@ -1313,6 +1318,7 @@ QRect AbstractClient::frameGeometryBeforeUpdateBlocking() const
void AbstractClient::updateGeometryBeforeUpdateBlocking()
m_bufferGeometryBeforeUpdateBlocking = bufferGeometry();
m_frameGeometryBeforeUpdateBlocking = frameGeometry();
......@@ -1000,6 +1000,7 @@ protected:
PendingGeometry_t pendingGeometryUpdate() const;
void setPendingGeometryUpdate(PendingGeometry_t update);
QRect bufferGeometryBeforeUpdateBlocking() const;
QRect frameGeometryBeforeUpdateBlocking() const;
void updateGeometryBeforeUpdateBlocking();
......@@ -1218,6 +1219,7 @@ private:
PendingGeometry_t m_pendingGeometryUpdate = PendingGeometryNone;
friend class GeometryUpdatesBlocker;
QRect m_visibleRectBeforeGeometryUpdate;
QRect m_bufferGeometryBeforeUpdateBlocking;
QRect m_frameGeometryBeforeUpdateBlocking;
QRect m_virtualKeyboardGeometry;
QRect m_keyboardGeometryRestore;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment