From 3665b8d1d867d46746893d5d257fcc4e777d4f0f Mon Sep 17 00:00:00 2001 From: DeadSix27 Date: Mon, 25 Sep 2023 14:22:39 +0200 Subject: [PATCH] win32: pass window handle to the window-id property uses the same mechanic as for x11 --- video/out/w32_common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/video/out/w32_common.c b/video/out/w32_common.c index b97d001791b78..9664b4b980ddb 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;