Schedule render on tag change, update window stack on udev

This commit is contained in:
Ottatop 2023-10-17 22:29:59 -05:00
parent 7572523cfc
commit 27692997ed
4 changed files with 4 additions and 2 deletions

View file

@ -459,6 +459,8 @@ pub fn run_udev() -> anyhow::Result<()> {
data.display_handle
.flush_clients()
.expect("failed to flush_clients");
data.state.focus_state.fix_up_focus(&mut data.state.space);
},
)?;

View file

@ -2,7 +2,6 @@
use std::{ffi::OsString, time::Duration};
use calloop::LoopHandle;
use smithay::{
backend::{
egl::EGLDevice,

View file

@ -317,7 +317,6 @@ impl XwmHandler for CalloopData {
};
tracing::debug!("configure notify with geo: {geometry:?}");
self.state.space.map_element(win, geometry.loc, true);
// TODO: anvil has a TODO here
}
fn maximize_request(&mut self, _xwm: XwmId, window: X11Surface) {

View file

@ -257,6 +257,7 @@ impl State {
if let Some(output) = tag.output(self) {
self.update_windows(&output);
self.update_focus(&output);
self.schedule_render(&output);
}
}
}
@ -271,6 +272,7 @@ impl State {
});
self.update_windows(&output);
self.update_focus(&output);
self.schedule_render(&output);
}
Msg::AddTags {
output_name,