diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2022-05-04 11:21:42 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2022-05-04 11:22:20 +0300 |
commit | a89fbd6702dd82c4b53c0002095b8e721d1a7072 (patch) | |
tree | 2ad2b43c2f4951e9bd30c2abbe3df9af3ef008ed | |
parent | 5274f6ea9da2f119fb67cf6b531e2db20139b5c8 (diff) |
desktop: Document the repaint schedule
Add some further comment why we could still potential need it.
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I510cd60d5feeccf7d8b9b34fb73e0e272fac5c6a
-rw-r--r-- | src/desktop.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/desktop.c b/src/desktop.c index 01e4539..0e1a989 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -344,6 +344,17 @@ desktop_committed(struct weston_desktop_surface *dsurface, !wl_list_empty(&surface->ivi->desktop_clients)) wl_signal_emit(&surface->signal_advertise_app, surface); + /* this repaint schedule is needed to allow resizing to work with the + * help of the hidden layer: + * + * 1. add the view in the hidden layer and send out correct dimensions + * 2. clients changes its dimensions + * 3. client commits with the new dimensions + * + * For desktop and fullscreen, desktop_surface_added() sends the + * dimensions from the beginning so applications no need to resize, but + * if that weren't the case we still need this in. + */ weston_compositor_schedule_repaint(surface->ivi->compositor); switch (surface->role) { |