Works by notifying property update when clipboard content is updated.
Unified · Split
| @@ -1925,6 +1925,10 @@ static void check_fd(struct vo_wayland_state *wl, struct vo_wayland_data_offer * · 1924 unmodified lines | ||
| 1925 | 1925 | talloc_free(wl->selection_text.start); |
| 1926 | 1926 | wl->selection_text = content; |
| 1927 | 1927 | 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); | |
| 1928 | 1932 | } |
| 1929 | 1933 | } |
| 1930 | 1934 | |