win32: pass window handle to the window-id property

uses the same mechanic as for x11
This commit is contained in:
DeadSix27 2023-09-25 14:22:39 +02:00 committed by Dudemanguy
parent 44cf6288c7
commit 3665b8d1d8
1 changed files with 6 additions and 0 deletions

View File

@ -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;