mirror of
https://github.com/86Box/86Box.git
synced 2025-01-22 09:11:50 -05:00
Attempted fix.
This commit is contained in:
parent
0babed63d0
commit
56bd39cec5
1 changed files with 2 additions and 2 deletions
|
@ -162,6 +162,7 @@ xinput2_proc()
|
|||
XIDeviceInfo *xidevinfo;
|
||||
int disp_screen;
|
||||
double abs_div;
|
||||
XWindowAttributes winattrib {};
|
||||
|
||||
XNextEvent(disp, (XEvent *) &ev);
|
||||
|
||||
|
@ -216,7 +217,7 @@ common_motion:
|
|||
relative, but in practice, the injected absolute coordinates
|
||||
are already in pixels. */
|
||||
if (v->mode == XIModeRelative)
|
||||
raw = 0;
|
||||
x_raw = 0;
|
||||
|
||||
abs_div = convert_mickeys(disp_screen, 1, axis);
|
||||
|
||||
|
@ -234,7 +235,6 @@ common_motion:
|
|||
prev_time = rawev->time;
|
||||
if (!mouse_capture)
|
||||
break;
|
||||
XWindowAttributes winattrib {};
|
||||
if (XGetWindowAttributes(disp, main_window->winId(), &winattrib)) {
|
||||
auto globalPoint = main_window->mapToGlobal(QPoint(main_window->width() / 2,
|
||||
main_window->height() / 2));
|
||||
|
|
Loading…
Reference in a new issue