server: adjust minimum and maximum window sizes to account for decorations

Fixes #271
This commit is contained in:
Shawn Wallace 2025-11-27 11:08:40 -05:00
parent ae98f974e0
commit 83e4aab4d5
4 changed files with 31 additions and 6 deletions

View file

@ -145,7 +145,6 @@ impl DecorationsDataSatellite {
pub fn draw_decorations(&mut self, world: &World, width: i32, parent_scale_factor: f32) {
if !self.will_draw_decorations(width) {
println!("not drawing ({} {})", width, self.should_draw);
if self.remove_buffer {
self.surface.attach(None, 0, 0);
self.surface.commit();