Tk Source Code

Check-in [d22491b4]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fine-tune display during resize events; now shows resize in progress but does not redraw contentview until done
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-5-branch
Files: files | file ages | folders
SHA1: d22491b4bcbd5fdcc3f37a8317a90cea23ab93a5
User & Date: kevin_walzer 2015-02-18 03:32:48
Context
2015-02-19
02:27
Restore live resize to Cocoa with reduced flickering; addresses most serious issue of Cocoa drawing while preserving user expectations for display during window resize; thanks to Marc Culler for extensive patch check-in: cebc6eeb user: kevin_walzer tags: core-8-5-branch
2015-02-18
03:34
Merge mark check-in: 31e46950 user: kevin_walzer tags: trunk
03:32
Fine-tune display during resize events; now shows resize in progress but does not redraw contentview until done check-in: d22491b4 user: kevin_walzer tags: core-8-5-branch
2015-02-16
22:06
Cleanup of bounds in button code. check-in: 9e3533bf user: kevin_walzer tags: core-8-5-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to macosx/tkMacOSXWindowEvent.c.

844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
        [super viewWillDraw];
}


- (BOOL) preservesContentDuringLiveResize
{
    return YES;
}

- (void)viewWillStartLiveResize
{
  NSDisableScreenUpdates();
  [super viewWillStartLiveResize];
  [self setNeedsDisplay:NO];
  [self setHidden:YES];
}


- (void)viewDidEndLiveResize
{

    NSEnableScreenUpdates();
    [self setHidden:NO];
    [self setNeedsDisplay:YES];
    [super setNeedsDisplay:YES];
    [super viewDidEndLiveResize];
     
}







|




<









<







844
845
846
847
848
849
850
851
852
853
854
855

856
857
858
859
860
861
862
863
864

865
866
867
868
869
870
871
        [super viewWillDraw];
}


- (BOOL) preservesContentDuringLiveResize
{
    return NO;
}

- (void)viewWillStartLiveResize
{

  [super viewWillStartLiveResize];
  [self setNeedsDisplay:NO];
  [self setHidden:YES];
}


- (void)viewDidEndLiveResize
{


    [self setHidden:NO];
    [self setNeedsDisplay:YES];
    [super setNeedsDisplay:YES];
    [super viewDidEndLiveResize];
     
}