desktop-shell: make get_output_work_area() global
authorLeandro Ribeiro <leandrohr@riseup.net>
Fri, 24 Jan 2020 20:53:44 +0000 (17:53 -0300)
committerDaniel Stone <daniels@collabora.com>
Wed, 26 Aug 2020 14:10:50 +0000 (14:10 +0000)
get_output_work_area() can be used by exposay to know the free space
where it can render its surfaces, what avoids overlapping the panel.

Currently this function is declared as static in
desktop-shell/shell.c, so it cannot be used by exposay.

Remove static from get_output_work_area() and add it to shell.h
so it can be used by exposay as well.

Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net>
desktop-shell/shell.c
desktop-shell/shell.h

index 40cba183a8e15401308fbf39796331c90eb497ff..c1c126e8184c06703417e115dad36b4f11e1d7bb 100644 (file)
@@ -334,7 +334,7 @@ get_output_panel_size(struct desktop_shell *shell,
        /* the correct view wasn't found */
 }
 
-static void
+void
 get_output_work_area(struct desktop_shell *shell,
                     struct weston_output *output,
                     pixman_rectangle32_t *area)
index c82fd28c7be8adce2eac65cc18f70dc7bcc85edc..6f72b357678ce3692fa7a664a8f11343b28cd8ee 100644 (file)
@@ -235,6 +235,11 @@ get_shell_surface(struct weston_surface *surface);
 struct workspace *
 get_current_workspace(struct desktop_shell *shell);
 
+void
+get_output_work_area(struct desktop_shell *shell,
+                    struct weston_output *output,
+                    pixman_rectangle32_t *area);
+
 void
 lower_fullscreen_layer(struct desktop_shell *shell,
                       struct weston_output *lowering_output);