summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2007-12-20 16:22:53 +0000
committerMatthias Melcher <fltk@matthiasm.com>2007-12-20 16:22:53 +0000
commit5097f4df5bfbab3710e79b69c77f6504d823c75f (patch)
tree90eb03c88511bc37e7e914154b1eb2948211692a
parent6e8ae36abd940b4726c6e5da6714525ce71244da (diff)
Fixed exposure event on zero size windows (STR #1824)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6005 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES1
-rw-r--r--src/Fl_win32.cxx8
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 8e474218e..64ce0d098 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,7 @@ CHANGES IN FLTK 1.1.8
STR #1639, STR #1645, STR #1644, STR #1792, STR #1793,
STR #1742, STR #1777, STR #1794, STR #1827, STR #1843,
STR #1796)
+ - Fixed exposure event on zero size windows (STR #1824)
- Fixed overlay offset for OS X Quartz (STR #1729)
- gl_font() support for Xft+X11 (STR #1809)
- Fl_Gl_Window::mode() needed to hide and show the window
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 243e82ed7..27a14edc7 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1118,7 +1118,13 @@ void Fl_Window::resize(int X,int Y,int W,int H) {
}
if (is_a_resize) {
Fl_Group::resize(X,Y,W,H);
- if (visible_r()) {redraw(); i->wait_for_expose = 1;}
+ if (visible_r()) {
+ redraw();
+ // only wait for exposure if this window has a size - a window
+ // with no width or height will never get an exposure event
+ if (W>0 && H>0)
+ i->wait_for_expose = 1;
+ }
} else {
x(X); y(Y);
flags |= SWP_NOSIZE;