URI: 
       tdevdraw: handle kEventWindowDrawContent - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit fb243a134de240cfafd3eb9db4545d0db5f01638
   DIR parent c51c29052ee4a356d345424249024c67c2ec05ae
  HTML Author: Russ Cox <rsc@swtch.com>
       Date:   Thu, 14 Jan 2010 13:47:19 -0800
       
       devdraw: handle kEventWindowDrawContent
       
       makes windows redraw properly when moved
       between screens when monitors get shuffled around
       
       R=
       CC=
       http://codereview.appspot.com/189076
       
       Diffstat:
         M src/cmd/devdraw/osx-screen-carbon.m |       8 ++++++++
       
       1 file changed, 8 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/src/cmd/devdraw/osx-screen-carbon.m b/src/cmd/devdraw/osx-screen-carbon.m
       t@@ -381,6 +381,7 @@ _screeninit(void)
                const EventTypeSpec cmds[] = {
                        { kEventClassWindow, kEventWindowClosed },
                        { kEventClassWindow, kEventWindowBoundsChanged },
       +                { kEventClassWindow, kEventWindowDrawContent },
                        { kEventClassCommand, kEventCommandProcess },
                        { kEventClassWindow, kEventWindowActivated },
                        { kEventClassWindow, kEventWindowDeactivated },
       t@@ -519,6 +520,13 @@ eventhandler(EventHandlerCallRef next, EventRef event, void *arg)
                                eresized(1);
                                break;
                        
       +                case kEventWindowDrawContent:;
       +                        // The update says what rectangle needs drawing,
       +                        // but just draw everything.
       +                        Rectangle r = Rect(0, 0, Dx(osx.screenr), Dy(osx.screenr));
       +                        _flushmemscreen(r);
       +                        break;
       +
                        case kEventWindowActivated:
                                if(!osx.collapsed)
                                        activated(1);