Skip to content

Commit

Permalink
Clear requested_size whenever window_size is set
Browse files Browse the repository at this point in the history
Since `requested_size` helps implement a sort of double buffering, it
should be cleared whenever we "commit" a new value.
  • Loading branch information
tarek-y-ismail committed Sep 2, 2024
1 parent 8927b6e commit 1307cf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/frontend_wayland/wayland_surface_observer.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class WaylandSurfaceObserver : public scene::NullSurfaceObserver
void latest_client_size(geometry::Size window_size)
{
impl->window_size = window_size;
impl->requested_size = {};
}

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

0 comments on commit 1307cf4

Please sign in to comment.