mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-27 21:58:18 +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()
|
.iter()
|
||||||
.filter(|win| win.alive())
|
.filter(|win| win.alive())
|
||||||
.filter(|win| {
|
.filter(|win| {
|
||||||
if let WindowElement::Wayland(win) = win {
|
let pending_size = if let WindowElement::Wayland(win) = win {
|
||||||
let current_state = win.toplevel().current_state();
|
let current_state = win.toplevel().current_state();
|
||||||
win.toplevel()
|
win.toplevel()
|
||||||
.with_pending_state(|state| state.size != current_state.size)
|
.with_pending_state(|state| state.size != current_state.size)
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
}
|
};
|
||||||
|
pending_size || win.with_state(|state| !state.loc_request_state.is_idle())
|
||||||
})
|
})
|
||||||
.map(|win| {
|
.map(|win| {
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in a new issue