summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-12-30 13:04:48 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-12-30 13:04:48 +0000
commit5c4e1336ba5004897e3407599be803fc1fa8785e (patch)
treefce3b76320881542d821a86169ff75275460c68a /src
parent42f7ef8ea908884a7749082c14511879ebe2e9fd (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_mac.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx
index 2367ea895..2338fd421 100644
--- a/src/Fl_mac.cxx
+++ b/src/Fl_mac.cxx
@@ -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);
}