Skip to content

Commit

Permalink
Fix toplevel window resize pingpong (#3575) better
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Sep 18, 2024
1 parent dc05278 commit c74bd77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/frontend_wayland/wayland_surface_observer.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ class WaylandSurfaceObserver : public scene::NullSurfaceObserver
void latest_client_size(geometry::Size window_size)
{
impl->window_size = window_size;
if (auto& r = impl->requested_size; r && r.value() == window_size)
{
r.reset();
}
}

/// Should only be called from the Wayland thread
Expand Down

0 comments on commit c74bd77

Please sign in to comment.