From a3e192837b5ae64a55921da89ac5e8d5727869ac Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 14 Jul 2021 16:53:41 +0300 Subject: [PATCH] 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. --- src/xdgshellclient.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xdgshellclient.cpp b/src/xdgshellclient.cpp index c0053b4167..fd92bd6872 100644 --- a/src/xdgshellclient.cpp +++ b/src/xdgshellclient.cpp @@ -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);