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. 6
      ivi-shell/ivi-layout.c

@ -699,10 +699,16 @@ commit_surface_list(struct ivi_layout *layout)
ivisurf->pending.prop.transition_type = IVI_LAYOUT_TRANSITION_NONE; ivisurf->pending.prop.transition_type = IVI_LAYOUT_TRANSITION_NONE;
if (configured && !is_surface_transition(ivisurf)) { if (configured && !is_surface_transition(ivisurf)) {
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, shell_surface_send_configure(ivisurf->surface,
ivisurf->prop.dest_width, ivisurf->prop.dest_width,
ivisurf->prop.dest_height); ivisurf->prop.dest_height);
} }
}
} else { } else {
configured = 0; configured = 0;
if (ivisurf->prop.dest_width != ivisurf->pending.prop.dest_width || if (ivisurf->prop.dest_width != ivisurf->pending.prop.dest_width ||

Loading…
Cancel
Save