Commit a060555
committed
seek-to: Retrieve clipboard content natively
It's been some time since mpv implemented native clipboard access on all
platforms. The old method of retriving clipboard content using external
subprocesses is only used as a fallback now, removing complex code.
The implementation is shamelessly copied from mpv's console.lua script:
https://github.com/mpv-player/mpv/blob/d837c43656876fb2fb7cbcf7e74bd438ba563217/player/lua/console.lua#L1329-L1358
Though to simplify the code further, I didn't add support for the
primary clipboard in X11 and Wayland.1 parent 85f13c9 commit a060555
1 file changed
+25
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
270 | 266 | | |
| 267 | + | |
| 268 | + | |
271 | 269 | | |
272 | | - | |
273 | 270 | | |
274 | 271 | | |
275 | 272 | | |
| |||
0 commit comments