From 4c877bd7c1f8f451f0913d54ef1a013b0c039dc6 Mon Sep 17 00:00:00 2001 From: Vithorio Polten Date: Tue, 21 May 2024 08:51:42 -0300 Subject: [PATCH] fix: proper test fixes --- src/platform/linux/input.cpp | 2 +- src/platform/windows/input.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/linux/input.cpp b/src/platform/linux/input.cpp index 29d386b44b8..181fe1e8e99 100644 --- a/src/platform/linux/input.cpp +++ b/src/platform/linux/input.cpp @@ -1098,7 +1098,7 @@ namespace platf { #endif } - inline util::point_t + util::point_t get_mouse_loc(input_t &input) { #ifdef SUNSHINE_BUILD_X11 Display *xdisplay = ((input_raw_t *) input.get())->display; diff --git a/src/platform/windows/input.cpp b/src/platform/windows/input.cpp index 298de33f158..15c22fc1d00 100644 --- a/src/platform/windows/input.cpp +++ b/src/platform/windows/input.cpp @@ -547,12 +547,12 @@ namespace platf { INPUT i {}; i.type = INPUT_MOUSE; + auto &mi = i.mi; mi.dwFlags = MOUSEEVENTF_ABSOLUTE | // MOUSEEVENTF_VIRTUALDESK maps to the entirety of the desktop rather than the primary desktop MOUSEEVENTF_VIRTUALDESK; - auto &mi = i.mi; return util::point_t { mi.dx, mi.dy