Fix for issue #471: Different Fl_Window::resize() behavior between v1.3.8 and v1.4

This commit is contained in:
ManoloFLTK 2022-07-27 16:53:43 +02:00
parent d6832f210c
commit f77c4737bb

View File

@ -2130,7 +2130,7 @@ void Fl_X11_Window_Driver::resize(int X,int Y,int W,int H) {
if (resize_from_program && shown()) {
float s = Fl::screen_driver()->scale(screen_num());
if (is_a_resize) {
size_range(); // calls sendxjunk()
if (!pWindow->resizable()) pWindow->size_range(w(),h(),w(),h());
if (is_a_move) {
XMoveResizeWindow(fl_display, fl_xid(pWindow), rint(X*s), rint(Y*s), W>0 ? W*s : 1, H>0 ? H*s : 1);
} else {