[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
This commit is contained in:
Vlad Zagorodniy 2019-09-05 19:39:03 +03:00
parent 630006e6f7
commit 062303244a

View file

@ -357,8 +357,6 @@ void ShellClient::finishInit() {
SurfaceInterface *s = surface();
disconnect(s, &SurfaceInterface::committed, this, &ShellClient::finishInit);
updateWindowMargins();
bool needsPlacement = !isInitialPositionSet();
if (supportsWindowRules()) {