Skip to content

Commit

Permalink
STR #1082: fullscreen demo would not redraw because resizing would se…
Browse files Browse the repository at this point in the history
…t 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
  • Loading branch information
Matthias Melcher committed Dec 30, 2005
1 parent 42f7ef8 commit 5c4e133
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Fl_mac.cxx
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 5c4e133

Please sign in to comment.