diff options
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index e2d54947..c97d098a 100644 --- a/sway/server.c +++ b/sway/server.c @@ -59,6 +59,10 @@ bool server_init(struct sway_server *server) { wlr_renderer_init_wl_display(renderer, server->wl_display); server->compositor = wlr_compositor_create(server->wl_display, renderer); + server->compositor_new_surface.notify = handle_compositor_new_surface; + wl_signal_add(&server->compositor->events.new_surface, + &server->compositor_new_surface); + server->data_device_manager = wlr_data_device_manager_create(server->wl_display); |