Paste P417

Masterwork From Distant Lands
ActivePublic

Authored by davidedmundson on Jun 22 2019, 2:59 PM.
diff --git a/shell_client.cpp b/shell_client.cpp
index 919fb75eb..8ce2ea507 100644
--- a/shell_client.cpp
+++ b/shell_client.cpp
@@ -314,6 +314,7 @@ void ShellClient::init()
if (m_requestGeometryBlockCounter != 0 || areGeometryUpdatesBlocked()) {
return;
}
+ qDebug() <<" Configure!!!" << this;
m_xdgShellSurface->configure(xdgSurfaceStates(), m_requestedClientSize);
};
connect(this, &AbstractClient::activeChanged, this, configure);
@@ -378,6 +379,7 @@ void ShellClient::finishInit() {
placeIn(area);
}
+ qDebug() << "finish init setting geometry";
m_requestGeometryBlockCounter--;
if (m_requestGeometryBlockCounter == 0) {
requestGeometry(m_blockedRequestGeometry);
@@ -603,7 +605,9 @@ void ShellClient::updateDecoration(bool check_workspace_pos, bool force)
if (m_xdgDecoration) {
auto mode = isDecorated() || m_userNoBorder ? XdgDecorationInterface::Mode::ServerSide: XdgDecorationInterface::Mode::ClientSide;
m_xdgDecoration->configure(mode);
- m_xdgShellSurface->configure(xdgSurfaceStates(), m_requestedClientSize);
+ if (m_requestGeometryBlockCounter == 0) {
+ m_xdgShellSurface->configure(xdgSurfaceStates(), m_requestedClientSize);
+ }
}
getShadow();
if (check_workspace_pos)
@@ -1193,6 +1197,7 @@ void ShellClient::resizeWithChecks(int w, int h, ForceGeometry_t force)
if (m_shellSurface) {
m_shellSurface->requestSize(QSize(w, h));
}
+ qDebug() << "WTF RESIZE";
if (m_xdgShellSurface) {
m_xdgShellSurface->configure(xdgSurfaceStates(), QSize(w, h));
}
davidedmundson edited the content of this paste. (Show Details)Jun 22 2019, 2:59 PM
davidedmundson changed the title of this paste from untitled to Masterwork From Distant Lands.