Skip to content

Commit 2eddf12

Browse files
YaLTeRDrakulix
authored andcommitted
xdg: Add a getter to read pending_configures
1 parent 0053864 commit 2eddf12

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/wayland/shell/xdg/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,14 @@ macro_rules! xdg_role {
285285
pub fn has_pending_changes(&self) -> bool {
286286
self.server_pending.as_ref().map(|s| s != self.current_server_state()).unwrap_or(false)
287287
}
288+
289+
/// Returns a list of configures sent to, but not yet acknowledged by the client.
290+
///
291+
/// The list is ordered by age, so the last configure in the list is the last one sent
292+
/// to the client.
293+
pub fn pending_configures(&self) -> &[$configure_name] {
294+
&self.pending_configures
295+
}
288296
}
289297

290298
impl Default for $attributes_name {

0 commit comments

Comments
 (0)