From 26beef44e063d0614ad22f24d88cad56cac3f7e5 Mon Sep 17 00:00:00 2001 From: xiota Date: Fri, 3 May 2024 02:56:23 -0700 Subject: [PATCH] Fix "error: no viable conversion" (#167) --- Source/Core/InputCommon/XInput2Mouse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/InputCommon/XInput2Mouse.cpp b/Source/Core/InputCommon/XInput2Mouse.cpp index eba7428cb7b4..76ac3e093eeb 100644 --- a/Source/Core/InputCommon/XInput2Mouse.cpp +++ b/Source/Core/InputCommon/XInput2Mouse.cpp @@ -33,7 +33,7 @@ bool InitXInput2Mouse(void* const hwnd) current_master = &all_masters[0]; if (current_master->use == XIMasterPointer) { - g_mouse_input.reset(XInput2Mouse((Window)hwnd, xi_opcode, current_master->deviceid)); + g_mouse_input.reset(new XInput2Mouse((Window)hwnd, xi_opcode, current_master->deviceid)); } XCloseDisplay(dpy);