Scedule render on SetLayout

This commit is contained in:
Ottatop 2023-12-21 19:00:21 -06:00
parent a69ab4eb94
commit 5ac7157f61
2 changed files with 2 additions and 10 deletions

View file

@ -353,6 +353,8 @@ impl State {
tag.set_layout(layout);
let Some(output) = tag.output(self) else { return };
self.update_windows(&output);
self.schedule_render(&output);
}
Msg::ConnectForAllOutputs { callback_id } => {

View file

@ -73,16 +73,6 @@ pub enum LocationRequestState {
Acknowledged(Point<i32, Logical>),
}
impl LocationRequestState {
/// Returns `true` if the location request state is [`Idle`].
///
/// [`Idle`]: LocationRequestState::Idle
#[must_use]
pub fn is_idle(&self) -> bool {
matches!(self, Self::Idle)
}
}
impl WindowElement {
/// RefCell Safety: This method uses a [`RefCell`] on this window.
pub fn toggle_floating(&self) {