feat(wayland): broken buffer usage code

This commit is contained in:
Nova
2025-07-17 12:44:57 -07:00
parent 4426d14bc5
commit eca5bb4bf2
7 changed files with 64 additions and 96 deletions

View File

@@ -93,7 +93,7 @@ impl XdgSurface for Surface {
let has_valid_buffer = state
.buffer
.as_ref()
.is_some_and(|b| b.size().x > 0 && b.size().y > 0);
.is_some_and(|b| b.buffer.size().x > 0 && b.buffer.size().y > 0);
let mut mapped_lock = toplevel.mapped.lock();
if mapped_lock.is_none()
@@ -161,7 +161,7 @@ impl XdgSurface for Surface {
// let has_valid_buffer = state
// .buffer
// .as_ref()
// .is_some_and(|b| b.size().x > 0 && b.size().y > 0);
// .is_some_and(|b| b.buffer.size().x > 0 && b.buffer.size().y > 0);
// let mut mapped_lock = popup.mapped.lock();
// if mapped_lock.is_none()