aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/handlers/xdg_shell.rs10
1 files changed, 6 insertions, 4 deletions
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();
}
}
}