void-packages/srcpkgs/cage/patches/cage-0.1.1-fix-building-with-wlroots-0.10.0.patch

41 lines
1.3 KiB
Diff

--- output.c
+++ output.c
@@ -386,6 +386,9 @@
/* Place the cursor in the center of the screen. */
wlr_cursor_warp(server->seat->cursor, NULL, wlr_output->width / 2, wlr_output->height / 2);
wlr_output_damage_add_whole(server->output->damage);
+
+ wlr_output_enable(wlr_output, true);
+ wlr_output_commit(wlr_output);
}
void
--- meson.build
+++ meson.build
@@ -35,7 +35,7 @@
)
endif
-wlroots = dependency('wlroots', version: '>= 0.6.0')
+wlroots = dependency('wlroots', version: '>= 0.10.0')
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
wayland_server = dependency('wayland-server')
pixman = dependency('pixman-1')
--- cage.c
+++ cage.c
@@ -374,15 +374,6 @@
wl_event_source_remove(sigint_source);
wl_event_source_remove(sigterm_source);
seat_destroy(server.seat);
- wlr_server_decoration_manager_destroy(server_decoration_manager);
- wlr_xdg_decoration_manager_v1_destroy(xdg_decoration_manager);
- wlr_xdg_shell_destroy(xdg_shell);
- wlr_idle_inhibit_v1_destroy(server.idle_inhibit_v1);
- if (server.idle) {
- wlr_idle_destroy(server.idle);
- }
- wlr_data_device_manager_destroy(data_device_mgr);
- wlr_compositor_destroy(compositor);
wlr_output_layout_destroy(server.output_layout);
/* This function is not null-safe, but we only ever get here
with a proper wl_display. */