Destroy decoration when DecorationBridge is destroyed
When KWin goes down the DecorationBridge might be destroyed before the last AbstractClient is destroyed. Thus we should destroy the Decoration when the DecorationBridge gets destroyed.
This commit is contained in:
parent
00fe5ec401
commit
d7f3ed5513
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "abstract_client.h"
|
||||
#include "decorations/decoratedclient.h"
|
||||
#include "decorations/decorationpalette.h"
|
||||
#include "decorations/decorationbridge.h"
|
||||
#include "cursor.h"
|
||||
#include "effects.h"
|
||||
#include "focuschain.h"
|
||||
|
@ -64,6 +65,8 @@ AbstractClient::AbstractClient()
|
|||
connect(this, &AbstractClient::clientFinishUserMovedResized, this, &AbstractClient::setupCheckScreenConnection);
|
||||
|
||||
connect(this, &AbstractClient::paletteChanged, this, &AbstractClient::triggerDecorationRepaint);
|
||||
|
||||
connect(Decoration::DecorationBridge::self(), &QObject::destroyed, this, &AbstractClient::destroyDecoration);
|
||||
}
|
||||
|
||||
AbstractClient::~AbstractClient()
|
||||
|
|
Loading…
Reference in a new issue