mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-26 21:58:10 +01:00
Apply flicker mitigations to udev
This commit is contained in:
parent
d1076928f2
commit
fb8c08663d
1 changed files with 3 additions and 2 deletions
|
@ -1484,13 +1484,14 @@ fn render_surface<'a>(
|
|||
.iter()
|
||||
.filter(|win| win.alive())
|
||||
.filter(|win| {
|
||||
if let WindowElement::Wayland(win) = win {
|
||||
let pending_size = if let WindowElement::Wayland(win) = win {
|
||||
let current_state = win.toplevel().current_state();
|
||||
win.toplevel()
|
||||
.with_pending_state(|state| state.size != current_state.size)
|
||||
} else {
|
||||
false
|
||||
}
|
||||
};
|
||||
pending_size || win.with_state(|state| !state.loc_request_state.is_idle())
|
||||
})
|
||||
.map(|win| {
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue