winewayland.drv: Handle xdg_toplevel configure event size hint.
commit6e903b7924fb05806dca8c05c2c64034f953626f
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Wed, 13 Sep 2023 08:32:20 +0000 (13 11:32 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 27 Sep 2023 20:16:48 +0000 (27 22:16 +0200)
tree8604049ce5b29428b84a820f9607e7027aa13df4
parent76eecdb205146b33cd041c94cbdbae8657e58693
winewayland.drv: Handle xdg_toplevel configure event size hint.

Use the size hint provided by the compositor to resize the window
associated with a Wayland toplevel surface.

A surface config moves through the following stages (each stage may hold
a different event):

1. Pending: In the process of being populated from separate Wayland
   events.

2. Requested: A fully formed config which hasn't been handled yet. A new
   finalized Pending event will always be promoted to a Requested event
   (so we will skip previous events if new ones arrive quickly enough).

3. Processing: A config that is being processed. When processing is
   done, we mark it with `wayland_surface_config.processed = TRUE`.

4. Current: The config has been acknowledged, i.e., we are promising to
   respect any implied content constraints.
dlls/winewayland.drv/wayland_surface.c
dlls/winewayland.drv/waylanddrv.h
dlls/winewayland.drv/window.c
dlls/winewayland.drv/window_surface.c