History

video/out/wayland_common: support clipboard monitoring

Works by notifying property update when clipboard content is updated.

nanahi committed 1 year ago

Commit d9f30cc1 parent 593d4371 file · +4 −0Browse files

Unified · Split

video/out/wayland_common.c+4−0
@@ -1925,6 +1925,10 @@ static void check_fd(struct vo_wayland_state *wl, struct vo_wayland_data_offer * · 1924 unmodified lines
19251925 talloc_free(wl->selection_text.start);
19261926 wl->selection_text = content;
19271927 content = (bstr){0};
1928+ mp_cmd_t *cmd = mp_input_parse_cmd(
1929+ wl->vo->input_ctx, bstr0("notify-property clipboard"), "<internal>"
1930+ );
1931+ mp_input_queue_cmd(wl->vo->input_ctx, cmd);
19281932 }
19291933 }
19301934

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t