Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 134318

Summary: UpdateManager shouldn't paint when invoking performValidation()
Product: [Tools] GEF Reporter: Randy Hudson <hudsonr>
Component: GEF-Legacy Draw2dAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.2.0 (Callisto) M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Randy Hudson CLA 2006-03-31 15:51:26 EST
FigureCanvas hooks into the update mgr's validation. During a layout, it sets its scrollbar visibility. On win32, this causes resize events to get sent since the client area is changing. The resize events are received by the LWS, which then performs an immediate update.

During normal updates, this has no effect since performUpdate is guarded for reentry cases. But, if performValidation is called to avoid a repaint (as is done for animation capture), performUpdate will run normally and paint anyway.

Fix is to tell the lightweight system to ignore the resize events, similar to setRedraw(false) on a Control.
Comment 1 Randy Hudson CLA 2006-03-31 15:55:39 EST
released to HEAD