diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 8e93afe50..d930c2ec7 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -944,7 +944,6 @@ int fl_handle(const XEvent& thisevent) // tell Fl_Window about it and set flag to prevent echoing: resize_bug_fix = window; -// printf("ConfigureNotify: X,Y,W,H=%d,%d,%d,%d\n", X, Y, W, H); window->resize(X, Y, W, H); break; // allow add_handler to do something too } @@ -973,10 +972,6 @@ int fl_handle(const XEvent& thisevent) //////////////////////////////////////////////////////////////// void Fl_Window::resize(int X,int Y,int W,int H) { -// printf("Fl_Window::resize(X=%d,Y=%d,W=%d,H=%d)\n", X, Y, W, H); -// printf(" resize_bug_fix=%p\n", resize_bug_fix); -// printf(" this=%p\n", this); - int is_a_move = (X != x() || Y != y()); int is_a_resize = (W != w() || H != h()); int resize_from_program = (this != resize_bug_fix); @@ -994,7 +989,7 @@ void Fl_Window::resize(int X,int Y,int W,int H) { size_range(w(), h(), w(), h()); } - if (shown()) { + if (resize_from_program && shown()) { if (is_a_resize) { if (!resizable()) size_range(w(),h(),w(),h()); if (is_a_move) { @@ -1002,9 +997,8 @@ void Fl_Window::resize(int X,int Y,int W,int H) { } else { XResizeWindow(fl_display, i->xid, W>0 ? W : 1, H>0 ? H : 1); } - } else if (resize_from_program) { + } else XMoveWindow(fl_display, i->xid, X, Y); - } } } |
