From 889cebb7c20d4195e5d4ac344a2175f2490354cc Mon Sep 17 00:00:00 2001
From: Henk Kalkwater <chris@netsoj.nl>
Date: Wed, 5 May 2021 14:08:30 +0200
Subject: [PATCH] Wayland touch inputs send normalized coords

Resolves #4361
---
 src/video/wayland/SDL_waylandtouch.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/video/wayland/SDL_waylandtouch.c b/src/video/wayland/SDL_waylandtouch.c
index 35420cb4e..7f24f6a88 100644
--- a/src/video/wayland/SDL_waylandtouch.c
+++ b/src/video/wayland/SDL_waylandtouch.c
@@ -73,8 +73,8 @@ touch_handle_touch(void *data,
      **/
 
     float FIXED_TO_FLOAT = 1. / 10000.;
-    float xf = FIXED_TO_FLOAT * x;
-    float yf = FIXED_TO_FLOAT * y;
+    float xf = FIXED_TO_FLOAT * normalized_x;
+    float yf = FIXED_TO_FLOAT * normalized_y;
 
     float PRESSURE_TO_FLOAT = 1. / 255.;
     float pressuref = PRESSURE_TO_FLOAT * pressure;