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:
parent
0fd0dd75e9
commit
2c30ea7863
1 changed files with 6 additions and 0 deletions
|
|
@ -380,6 +380,12 @@ impl XState {
|
||||||
}
|
}
|
||||||
xcb::Event::X(x::Event::MapRequest(e)) => {
|
xcb::Event::X(x::Event::MapRequest(e)) => {
|
||||||
debug!("requested to map {:?}", e.window());
|
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
|
unwrap_or_skip_bad_window_cont!(self
|
||||||
.connection
|
.connection
|
||||||
.send_and_check_request(&x::MapWindow { window: e.window() }));
|
.send_and_check_request(&x::MapWindow { window: e.window() }));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue