aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-01-14 08:57:46 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-01-14 08:57:46 +0400
commit14552d856c52006e821711b9d6d6cfda4651d222 (patch)
tree30718b7c6dda09014ddadb5d4c83fba009e3bad5
parent632a00fcca0088ae08bda52c3266975534a538d5 (diff)
downloadniri-14552d856c52006e821711b9d6d6cfda4651d222.tar.gz
niri-14552d856c52006e821711b9d6d6cfda4651d222.tar.bz2
niri-14552d856c52006e821711b9d6d6cfda4651d222.zip
xdg-decoration: Always send configure
The protocol wording seems to require it.
-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();
}
}
}