From 14552d856c52006e821711b9d6d6cfda4651d222 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 14 Jan 2024 08:57:46 +0400 Subject: xdg-decoration: Always send configure The protocol wording seems to require it. --- src/handlers/xdg_shell.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs index 29907e49..9097861c 100644 --- a/src/handlers/xdg_shell.rs +++ b/src/handlers/xdg_shell.rs @@ -301,9 +301,10 @@ impl XdgDecorationHandler for State { state.decoration_mode = Some(mode); }); - // Only send configure if it's non-initial. + // A configure is required in response to this event. However, if an initial configure + // wasn't sent, then we will send this as part of the initial configure later. if initial_configure_sent(&toplevel) { - toplevel.send_pending_configure(); + toplevel.send_configure(); } } @@ -317,9 +318,10 @@ impl XdgDecorationHandler for State { state.decoration_mode = Some(mode); }); - // Only send configure if it's non-initial. + // A configure is required in response to this event. However, if an initial configure + // wasn't sent, then we will send this as part of the initial configure later. if initial_configure_sent(&toplevel) { - toplevel.send_pending_configure(); + toplevel.send_configure(); } } } -- cgit