mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-01-13 08:01:05 +01:00
Scedule render on SetLayout
This commit is contained in:
parent
a69ab4eb94
commit
5ac7157f61
2 changed files with 2 additions and 10 deletions
|
@ -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 } => {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue