summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-03-14 16:59:29 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-03-14 16:59:29 +0100
commit0eb6a0e193d7608650728f42b88e9dfc0ab29282 (patch)
tree5c67b8fea62a51a30b0166379f9285828da51c99
parentadd43cd3fcd12238042587683cdbee96430ed1e0 (diff)
Fix Fl_Wayland_Screen_Driver::get_mouse() for scale factor effect
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
index 2cfe17407..7d6d35ac0 100644
--- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
@@ -1482,9 +1482,6 @@ int Fl_Wayland_Screen_Driver::get_mouse(int &xx, int &yy) {
Fl_Window *win = Fl_Wayland_Screen_Driver::surface_to_window(seat->pointer_focus);
if (!win) return 0;
int snum = Fl_Window_Driver::driver(win)->screen_num();
- float s = scale(snum);
- xx = xx/s;
- yy = yy/s;
//printf("get_mouse(%dx%d)->%d\n", xx, yy, snum);
return snum;
}