diff --git a/x11client.cpp b/x11client.cpp --- a/x11client.cpp +++ b/x11client.cpp @@ -3625,8 +3625,11 @@ w = qMax(min_size.width(), w); h = qMax(min_size.height(), h); - int w1 = w; - int h1 = h; + if (!rules()->checkStrictGeometry(!isFullScreen())) { + // Disobey increments and aspect by explicit rule. + return QSize(w, h); + } + int width_inc = m_geometryHints.resizeIncrements().width(); int height_inc = m_geometryHints.resizeIncrements().height(); int basew_inc = m_geometryHints.baseSize().width(); @@ -3750,11 +3753,6 @@ w += baseSize.width(); h += baseSize.height(); } - if (!rules()->checkStrictGeometry(!isFullScreen())) { - // disobey increments and aspect by explicit rule - w = w1; - h = h1; - } return QSize(w, h); }