X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdesktop.c;h=0e1a989ee181b51e6c409c2be601c78a17f53beb;hb=1304d412eb2bcefd4733539213ecb9b6ca39a605;hp=bc1e33f046ee214e8c07ef2d94b6f1b7d6426264;hpb=71deafe03f41738bfcd7eafd21c3262c29f45ee7;p=src%2Fagl-compositor.git diff --git a/src/desktop.c b/src/desktop.c index bc1e33f..0e1a989 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -344,6 +344,19 @@ 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) { case IVI_SURFACE_ROLE_DESKTOP: case IVI_SURFACE_ROLE_REMOTE: