mirror of
https://github.com/fltk/fltk.git
synced 2026-05-21 14:31:40 +08:00
Fix Fl_Wayland_Screen_Driver::get_mouse() for scale factor effect
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user