diff --git a/xdgshellclient.cpp b/xdgshellclient.cpp index 5d487b66e9..4fb0833b00 100644 --- a/xdgshellclient.cpp +++ b/xdgshellclient.cpp @@ -780,7 +780,7 @@ void XdgShellClient::changeMaximize(bool horizontal, bool vertical, bool adjust) // call into decoration update borders if (isDecorated() && decoration()->client() && !(options->borderlessMaximizedWindows() && m_requestedMaximizeMode == KWin::MaximizeFull)) { changeMaximizeRecursion = true; - const auto c = decoration()->client().data(); + const auto c = decoration()->client().toStrongRef(); if ((m_requestedMaximizeMode & MaximizeVertical) != (oldMode & MaximizeVertical)) { emit c->maximizedVerticallyChanged(m_requestedMaximizeMode & MaximizeVertical); }