From 062303244acc09e1e59afdde77d111426da29001 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Thu, 5 Sep 2019 19:39:03 +0300 Subject: [PATCH] [wayland] Don't update margins in ShellClient::finishInit Summary: It doesn't make sense to update window margins in finishInit because no buffer is attached yet at that moment. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: davidedmundson, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23743 --- shell_client.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/shell_client.cpp b/shell_client.cpp index 5fc7f31d5b..ebd92b208c 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -357,8 +357,6 @@ void ShellClient::finishInit() { SurfaceInterface *s = surface(); disconnect(s, &SurfaceInterface::committed, this, &ShellClient::finishInit); - updateWindowMargins(); - bool needsPlacement = !isInitialPositionSet(); if (supportsWindowRules()) {