Re: [fltk/fltk] If app appears on non-active screen while active screen has screen scaling enabled, window resizes (#259)
Webb Hinton
Jul 20, 2021
What happens if you move the window from one screen to the other screen and back? The expected behavior would be that the window keeps its size, as far as possible, if ... Assume the screen size is similar (e.g. 21") but the screens have different pixel sizes (effective: different resolutions, dpi).
Yes the screen sizes are similar, 21" for the 1080 and 24" for the 4k, I believe.
Yes, there is a small delay in the resizing. I've always understood that FLTK was doing some resizing of the window when moving it between mointors with different resolutions. I guess the problem is that in this particular situation where the window is popping up on the "non-active" window causes the window to appear in the incorrect position and can cause widgets to take on the wrong dimensions, as I described in the fltk-rs issue.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.