[platforms/wayland] Do an initial xdg-surface commit

Summary:
After setting the xdg-surface role an initial commit must be sent per
protocol description.

This fixes Wayland nested session after commit 84de8d135d made this
requirement explicit.

Test Plan: Launched Wayland nested session.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D25127
This commit is contained in:
Roman Gilg 2019-11-03 16:53:45 +01:00
parent f0a021eae5
commit 932a1160f5

View file

@ -99,6 +99,8 @@ XdgShellOutput::XdgShellOutput(Surface *surface, XdgShell *xdgShell, WaylandBack
}
updateWindowTitle();
});
surface->commit(Surface::CommitFlag::None);
}
XdgShellOutput::~XdgShellOutput()