Commit c6d61f5f authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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.

(cherry picked from commit a3e19283)
parent 71a1ff04
......@@ -1212,7 +1212,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()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment