diff options
| author | Manolo Gouy <Manolo> | 2012-10-16 15:35:34 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2012-10-16 15:35:34 +0000 |
| commit | 9788ee6709e57ed6ea165ada4f3360689817bb4e (patch) | |
| tree | 4ebc3e51da2bee5be5b674a29cb618861b5196ee | |
| parent | d277fa4a2fc8b9a968a9f65c97f1e5ce609237ff (diff) | |
Fix STR #2859: after a window resize refused by the window manager, the window becomes freezed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_x.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index b349ea0e5..6056bf8bc 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -1663,14 +1663,13 @@ int fl_handle(const XEvent& thisevent) void Fl_Window::resize(int X,int Y,int W,int H) { int is_a_move = (X != x() || Y != y()); int is_a_resize = (W != w() || H != h()); - int is_a_enlarge = (W > w() || H > h()); int resize_from_program = (this != resize_bug_fix); if (!resize_from_program) resize_bug_fix = 0; if (is_a_move && resize_from_program) set_flag(FORCE_POSITION); else if (!is_a_resize && !is_a_move) return; if (is_a_resize) { Fl_Group::resize(X,Y,W,H); - if (shown()) {redraw(); if(is_a_enlarge) i->wait_for_expose = 1;} + if (shown()) {redraw();} } else { x(X); y(Y); } |
