diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-11-21 15:01:58 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-11-21 15:01:58 +0000 |
| commit | 57083d0222b8046b98e8f4b21868e0824ce1de42 (patch) | |
| tree | 5a0b37e687f94309bdad63a9bf9fb6c545b24a59 /src | |
| parent | 430789d8bec5a667fc432b890800b9d164aa05ad (diff) | |
Fixed XExpose event for soome WM's (STR #2039)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7880 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 89c6d2934..76edecf6b 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -1409,13 +1409,14 @@ 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(); i->wait_for_expose = 1;} + if (shown()) {redraw(); if(is_a_enlarge) i->wait_for_expose = 1;} } else { x(X); y(Y); } |
