Skip to content

Commit

Permalink
Schedule render on tag change, update window stack on udev
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottatop committed Oct 18, 2023
1 parent 7572523 commit 2769299
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/backend/udev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
)?;

Expand Down
1 change: 0 additions & 1 deletion src/backend/winit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use std::{ffi::OsString, time::Duration};

use calloop::LoopHandle;
use smithay::{
backend::{
egl::EGLDevice,
Expand Down
1 change: 0 additions & 1 deletion src/handlers/xwayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions src/state/api_handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand All @@ -271,6 +272,7 @@ impl State {
});
self.update_windows(&output);
self.update_focus(&output);
self.schedule_render(&output);
}
Msg::AddTags {
output_name,
Expand Down

0 comments on commit 2769299

Please sign in to comment.