mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 22:36:19 +08:00
Improve Fl_Window::hotspot() when diverse screens have diverse scale factors.
This commit is contained in:
@@ -23,6 +23,8 @@ void Fl_Window::hotspot(int X, int Y, int offscreen) {
|
||||
|
||||
// Update the screen position based on the mouse position.
|
||||
Fl::get_mouse(mx,my);
|
||||
// put the window on the mouse-containing screen
|
||||
this->screen_num(Fl::screen_num(mx, my));
|
||||
X = mx-X; Y = my-Y;
|
||||
|
||||
// If offscreen is 0 (the default), make sure that the window
|
||||
|
||||
Reference in New Issue
Block a user