ivi-layout: use libweston-desktop api for configure event

The libweston-desktop api is used to send configure
event to application.

Signed-off-by: Michael Teyfel <mteyfel@de.adit-jv.com>
dev
Michael Teyfel 6 years ago committed by Daniel Stone
parent 831e58f8e6
commit c04188e546
  1. 12
      ivi-shell/ivi-layout.c

@ -699,9 +699,15 @@ commit_surface_list(struct ivi_layout *layout)
ivisurf->pending.prop.transition_type = IVI_LAYOUT_TRANSITION_NONE;
if (configured && !is_surface_transition(ivisurf)) {
shell_surface_send_configure(ivisurf->surface,
ivisurf->prop.dest_width,
ivisurf->prop.dest_height);
if (weston_surface_is_desktop_surface(ivisurf->surface)) {
weston_desktop_surface_set_size(ivisurf->weston_desktop_surface,
ivisurf->prop.dest_width,
ivisurf->prop.dest_height);
} else {
shell_surface_send_configure(ivisurf->surface,
ivisurf->prop.dest_width,
ivisurf->prop.dest_height);
}
}
} else {
configured = 0;

Loading…
Cancel
Save