On Wayland, fix RedrawRequsted loop
The `dirty` is never cleared when decorations are hidden without `sctk-adwaita`. Fixes #3177.
This commit is contained in:
parent
c235bd154a
commit
53ca5af48f
2 changed files with 2 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ Unreleased` header.
|
||||||
|
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- On Wayland, fix `RedrawRequsted` being always sent without decorations and `sctk-adwaita` feature.
|
||||||
- On Windows, fix deadlock when accessing the state during `Cursor{Enter,Leave}`.
|
- On Windows, fix deadlock when accessing the state during `Cursor{Enter,Leave}`.
|
||||||
- On macOS, fix deadlock when entering a nested event loop from an event handler.
|
- On macOS, fix deadlock when entering a nested event loop from an event handler.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -537,7 +537,7 @@ impl WindowState {
|
||||||
/// Refresh the decorations frame if it's present returning whether the client should redraw.
|
/// Refresh the decorations frame if it's present returning whether the client should redraw.
|
||||||
pub fn refresh_frame(&mut self) -> bool {
|
pub fn refresh_frame(&mut self) -> bool {
|
||||||
if let Some(frame) = self.frame.as_mut() {
|
if let Some(frame) = self.frame.as_mut() {
|
||||||
if frame.is_dirty() {
|
if !frame.is_hidden() && frame.is_dirty() {
|
||||||
return frame.draw();
|
return frame.draw();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue