xdg-decoration: Always send configure

The protocol wording seems to require it.
This commit is contained in:
Ivan Molodetskikh
2024-01-14 08:57:46 +04:00
parent 632a00fcca
commit 14552d856c
+6 -4
View File
@@ -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();
}
}
}