summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_macosx.m2
-rw-r--r--libvo/w32_common.c2
-rw-r--r--libvo/x11_common.c3
3 files changed, 4 insertions, 3 deletions
diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m
index 93db462461..2fe61dd612 100644
--- a/libvo/vo_macosx.m
+++ b/libvo/vo_macosx.m
@@ -1009,7 +1009,7 @@ static int control(uint32_t request, void *data)
snprintf(cmdstr, sizeof(cmdstr), "set_mouse_pos %i %i",
(int)(vo_fs ? p.x : (p.x - textureFrame.origin.x)),
(int)(vo_fs ? [self frame].size.height - p.y: (NSMaxY(textureFrame) - p.y)));
- mp_input_queue_cmd(mp_input_parse_cmd(cmdstr));
+ mp_input_queue_cmd(global_vo->input_ctx, mp_input_parse_cmd(cmdstr));
}
}
}
diff --git a/libvo/w32_common.c b/libvo/w32_common.c
index 82cd9c94a1..b45b06cfbc 100644
--- a/libvo/w32_common.c
+++ b/libvo/w32_common.c
@@ -137,7 +137,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
char cmd_str[40];
snprintf(cmd_str, sizeof(cmd_str), "set_mouse_pos %i %i",
GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam));
- mp_input_queue_cmd(mp_input_parse_cmd(cmd_str));
+ mp_input_queue_cmd(global_vo->input_ctx, mp_input_parse_cmd(cmd_str));
}
break;
case WM_MOUSEWHEEL:
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 85ed754958..ec48f16ff6 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -1063,7 +1063,8 @@ int vo_x11_check_events(struct vo *vo)
{
char cmd_str[40];
sprintf(cmd_str,"set_mouse_pos %i %i",Event.xmotion.x, Event.xmotion.y);
- mp_input_queue_cmd(mp_input_parse_cmd(cmd_str));
+ mp_input_queue_cmd(vo->input_ctx,
+ mp_input_parse_cmd(cmd_str));
}
if (x11->vo_mouse_autohide)