summaryrefslogtreecommitdiff
path: root/ivi-shell/ivi-shell.h
diff options
context:
space:
mode:
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-03-15 16:57:51 +0200
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-03-16 13:10:46 +0200
commit1f82193379027842762fcd098170d4c58d508fd9 (patch)
tree2eafd1710ad5851baae90c2a5efb772658d53394 /ivi-shell/ivi-shell.h
parent1ddb8dd8f1d31d659ef59c14d5cd9f29ab8c56de (diff)
downloadweston-1f82193379027842762fcd098170d4c58d508fd9.tar.gz
ivi-shell: call shell_surface_send_configure() directly
For some reason, it seems that ivi-layout.c has tried hard to avoid calling directly into ivi-shell.c. This means there is a jump through hoops just to get the configure event sent to the clients. Ivi-shell registers a listener for a ivi-layout signal for sending the event. Instead, let ivi-layout.c call directly into ivi-shell.c, and expose a function to send out the configure events. This reduces some confusion on who calls what. The main idea though is that this makes ivi-shell.c not depend on struct ivi_layout_surface fields directly anymore. In following patches, ivi_layout_surface can be made opaque for ivi-shell.c. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Emre Ucan <eucan@de.adit-jv.com>
Diffstat (limited to 'ivi-shell/ivi-shell.h')
-rw-r--r--ivi-shell/ivi-shell.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ivi-shell/ivi-shell.h b/ivi-shell/ivi-shell.h
index 744d9691..45faceb4 100644
--- a/ivi-shell/ivi-shell.h
+++ b/ivi-shell/ivi-shell.h
@@ -69,4 +69,8 @@ input_panel_setup(struct ivi_shell *shell);
void
input_panel_destroy(struct ivi_shell *shell);
+void
+shell_surface_send_configure(struct weston_surface *surface,
+ int32_t width, int32_t height);
+
#endif /* WESTON_IVI_SHELL_H */