On Wayland, fix RedrawRequsted loop

The `dirty` is never cleared when decorations are hidden without
`sctk-adwaita`.

Fixes #3177.
This commit is contained in:
Kirill Chibisov 2023-10-25 20:59:39 +04:00 committed by GitHub
parent c235bd154a
commit 53ca5af48f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -537,7 +537,7 @@ impl WindowState {
/// Refresh the decorations frame if it's present returning whether the client should redraw.
pub fn refresh_frame(&mut self) -> bool {
if let Some(frame) = self.frame.as_mut() {
if frame.is_dirty() {
if !frame.is_hidden() && frame.is_dirty() {
return frame.draw();
}
}