From 5c4e1336ba5004897e3407599be803fc1fa8785e Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 30 Dec 2005 13:04:48 +0000 Subject: 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 --- src/Fl_mac.cxx | 6 ++++-- 1 file 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); } -- cgit v1.2.3