Fix for issue #471: Different Fl_Window::resize() behavior between v1.3.8 and v1.4
This commit is contained in:
parent
d6832f210c
commit
f77c4737bb
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user