1
0
mirror of https://codeberg.org/vyivel/dulcepan/ synced 2025-12-18 16:15:13 +02:00

Add a "show cursors" option

This commit is contained in:
Kirill Primak
2024-06-20 09:15:13 +03:00
parent 254e138a4e
commit 9c7520bef4
3 changed files with 11 additions and 5 deletions

View File

@@ -168,12 +168,12 @@ static void output_handle_done(void *data, struct wl_output *wl_output) {
output->has_geom = true;
output->frame = zwlr_screencopy_manager_v1_capture_output(
output->state->screencopy_manager, false, output->wl_output);
zwlr_screencopy_frame_v1_add_listener(output->frame, &frame_listener, output);
struct dp_state *state = output->state;
output->frame = zwlr_screencopy_manager_v1_capture_output(
state->screencopy_manager, state->show_cursors, output->wl_output);
zwlr_screencopy_frame_v1_add_listener(output->frame, &frame_listener, output);
output->main_surface = wl_compositor_create_surface(state->compositor);
output->main_layer_surface = zwlr_layer_shell_v1_get_layer_surface(state->layer_shell,
output->main_surface, output->wl_output, ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY, "dulcepan");