Skip to content

Commit

Permalink
Merge pull request #119 from pinnacle-comp/fix_layout_udev
Browse files Browse the repository at this point in the history
Schedule render on `SetLayout`
  • Loading branch information
Ottatop authored Dec 22, 2023
2 parents a69ab4e + 5ac7157 commit 7106e2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 2 additions & 0 deletions src/api/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 } => {
Expand Down
10 changes: 0 additions & 10 deletions src/window/window_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7106e2d

Please sign in to comment.