fix: request logical size when autosizing

This commit is contained in:
Ashley Wulber 2024-11-19 12:58:25 -05:00
parent db8e74b7a3
commit eff664a035
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
2 changed files with 56 additions and 9 deletions

View file

@ -87,6 +87,7 @@ where
prev_dnd_destination_rectangles_count: 0,
viewport_version: 0,
redraw_requested: false,
resize_enabled: false,
},
);
@ -102,7 +103,7 @@ where
pub fn is_idle(&self) -> bool {
self.entries
.values()
.all(|window| window.redraw_at.is_none())
.all(|window| window.redraw_at.is_none() && !window.resize_enabled)
}
pub fn redraw_at(&self) -> Option<Instant> {
@ -193,6 +194,7 @@ where
preedit: Option<Preedit<P::Renderer>>,
ime_state: Option<(Rectangle, input_method::Purpose)>,
pub(crate) redraw_requested: bool,
pub resize_enabled: bool,
}
impl<P, C> Window<P, C>