wayland: Force decoration update

If the client had created an xdg-toplevel-decoration and has called the
set_mode() request with csd before the initial configure event is sent,
we still need to send an xdg-toplevel-decoration configure event with
csd mode.
This commit is contained in:
Vlad Zahorodnii 2021-07-14 16:53:41 +03:00
parent 9e5cb836a3
commit a3e192837b

View file

@ -1192,7 +1192,9 @@ void XdgToplevelClient::initialize()
{
bool needsPlacement = isPlaceable();
updateDecoration(false, false);
// Decoration update is forced so an xdg_toplevel_decoration.configure event
// is sent if the client has called the set_mode() request with csd mode.
updateDecoration(false, true);
if (supportsWindowRules()) {
setupWindowRules(false);