Allow toplevels to reconfigure themselves

This commit is contained in:
Shawn Wallace 2025-05-11 11:46:29 -04:00
parent 378421d356
commit 51300780f8
4 changed files with 36 additions and 26 deletions

View file

@ -125,7 +125,7 @@ impl SurfaceData {
output_name
}
fn update_viewport(&self, dims: WindowDims, size_hints: Option<WmNormalHints>) {
pub(super) fn update_viewport(&self, dims: WindowDims, size_hints: Option<WmNormalHints>) {
let width = (dims.width as f64 / self.scale_factor) as i32;
let height = (dims.height as f64 / self.scale_factor) as i32;
if width > 0 && height > 0 {