STR #1082: fullscreen demo would not redraw because resizing would set the "wait for expose" flag. However, OS X does not send an expose event on resizes. Doh!

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2005-12-30 13:04:48 +00:00
parent 42f7ef8ea9
commit 5c4e1336ba

View File

@ -1768,7 +1768,6 @@ void Fl_X::make(Fl_Window* w)
x->wait_for_expose = 1;
x->next = Fl_X::first;
Fl_X::first = x;
if (w->resizable()) DrawGrowIcon(x->xid);
w->set_visible();
{ // Install Carbon Event handlers
OSStatus ret;
@ -1939,7 +1938,10 @@ void Fl_Window::resize(int X,int Y,int W,int H) {
resize_from_system = 0;
if (is_a_resize) {
Fl_Group::resize(X,Y,W,H);
if (shown()) { redraw(); if (!parent()) i->wait_for_expose = 1; }
if (shown()) {
redraw();
//if (!parent()) i->wait_for_expose = 1;
}
} else {
x(X); y(Y);
}