xstate: always stack newly mapped windows below

I can't figure out a way to actually test this, but this seems to work in manual testing.
Fixes #146
This commit is contained in:
Shawn Wallace 2025-09-02 23:08:00 -04:00
parent 0fd0dd75e9
commit 2c30ea7863

View file

@ -380,6 +380,12 @@ impl XState {
}
xcb::Event::X(x::Event::MapRequest(e)) => {
debug!("requested to map {:?}", e.window());
unwrap_or_skip_bad_window_cont!(self.connection.send_and_check_request(
&x::ConfigureWindow {
window: e.window(),
value_list: &[x::ConfigWindow::StackMode(x::StackMode::Below)]
}
));
unwrap_or_skip_bad_window_cont!(self
.connection
.send_and_check_request(&x::MapWindow { window: e.window() }));