Commit c6ab3d52 authored by Giulio Camuffo's avatar Giulio Camuffo Committed by Kristian H. Kristensen

compositor: let the shells create the screenshooter

parent e9022e79
...@@ -6030,6 +6030,8 @@ module_init(struct weston_compositor *ec, ...@@ -6030,6 +6030,8 @@ module_init(struct weston_compositor *ec,
create_keyboard_focus_listener(seat); create_keyboard_focus_listener(seat);
} }
screenshooter_create(ec);
shell_add_bindings(ec, shell); shell_add_bindings(ec, shell);
shell_fade_init(shell); shell_fade_init(shell);
......
...@@ -3672,7 +3672,6 @@ weston_compositor_init(struct weston_compositor *ec, ...@@ -3672,7 +3672,6 @@ weston_compositor_init(struct weston_compositor *ec,
if (weston_compositor_xkb_init(ec, &xkb_names) < 0) if (weston_compositor_xkb_init(ec, &xkb_names) < 0)
return -1; return -1;
screenshooter_create(ec);
text_backend_init(ec); text_backend_init(ec);
wl_data_device_manager_init(ec->wl_display); wl_data_device_manager_init(ec->wl_display);
......
...@@ -585,7 +585,7 @@ screenshooter_destroy(struct wl_listener *listener, void *data) ...@@ -585,7 +585,7 @@ screenshooter_destroy(struct wl_listener *listener, void *data)
free(shooter); free(shooter);
} }
void WL_EXPORT void
screenshooter_create(struct weston_compositor *ec) screenshooter_create(struct weston_compositor *ec)
{ {
struct screenshooter *shooter; struct screenshooter *shooter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment