diff options
author | DeadSix27 <DeadSix27@users.noreply.github.com> | 2023-09-25 14:22:39 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-25 15:35:25 +0000 |
commit | 3665b8d1d867d46746893d5d257fcc4e777d4f0f (patch) | |
tree | 13e62bab330490120adeb3099d515b05d85d3bc4 | |
parent | 44cf6288c73b71d22a98870cb08b1daf9da5e048 (diff) | |
download | mpv-3665b8d1d867d46746893d5d257fcc4e777d4f0f.tar.bz2 mpv-3665b8d1d867d46746893d5d257fcc4e777d4f0f.tar.xz |
win32: pass window handle to the window-id property
uses the same mechanic as for x11
-rw-r--r-- | video/out/w32_common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c index b97d001791..9664b4b980 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -1868,6 +1868,12 @@ static int gui_thread_control(struct vo_w32_state *w32, int request, void *arg) return VO_TRUE; } + case VOCTRL_GET_WINDOW_ID: { + if (!w32->window) + return VO_NOTAVAIL; + *(int64_t *)arg = (int64_t)w32->window; + return VO_TRUE; + } case VOCTRL_GET_HIDPI_SCALE: { *(double *)arg = w32->dpi_scale; return VO_TRUE; |