diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-08 10:06:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-08 10:06:41 -0400 |
commit | 9e1ff2dce9eded87673c8cd7eeb7e31a421f7a22 (patch) | |
tree | 4d97bb0ddb8475b992c846f74d39ff8ee3109801 /rootston | |
parent | 1908d88fab23660e863928d8fc874bad4593b087 (diff) | |
parent | 0ce313530446b801302850f03c4a8d8c20cfd782 (diff) |
Merge pull request #140 from emersion/screenshooter
Add screenshooter
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/desktop.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c index 555d592f..3d9b2120 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -208,16 +208,15 @@ struct roots_desktop *desktop_create(struct roots_server *server, wl_list_init(&desktop->output_remove.link); desktop->output_remove.notify = output_remove_notify; - wl_signal_add(&server->backend->events.output_add, - &desktop->output_add); + wl_signal_add(&server->backend->events.output_add, &desktop->output_add); wl_signal_add(&server->backend->events.output_remove, - &desktop->output_remove); + &desktop->output_remove); desktop->server = server; desktop->config = config; desktop->layout = wlr_output_layout_create(); - desktop->compositor = wlr_compositor_create( - server->wl_display, server->renderer); + desktop->compositor = wlr_compositor_create(server->wl_display, + server->renderer); desktop->xdg_shell_v6 = wlr_xdg_shell_v6_create(server->wl_display); wl_signal_add(&desktop->xdg_shell_v6->events.new_surface, @@ -236,7 +235,9 @@ struct roots_desktop *desktop_create(struct roots_server *server, desktop->xwayland_surface.notify = handle_xwayland_surface; desktop->gamma_control_manager = wlr_gamma_control_manager_create( - server->wl_display); + server->wl_display); + desktop->screenshooter = wlr_screenshooter_create(server->wl_display, + server->renderer); return desktop; } |