Bug 1395

Summary: Resizing GLCanvas does not redraw immediately
Product: [JogAmp] Jogl Reporter: morgan.mathiaut
Component: swtAssignee: Sven Gothel <sgothel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: crougier
Priority: P4    
Version: tbd   
Hardware: All   
OS: linux   
Type: DEFECT SCM Refs:
Workaround: ---
Attachments: Reproducer

Description morgan.mathiaut 2019-09-24 14:26:20 CEST
Created attachment 823 [details]
Reproducer

Using the attached reproducer, make the window fullscreen by clicking the window decoration fullscreen button.

Only a portion of the fullscreen window is drawn in orange, while the whole window should be drawn orange.
This can also be reproduced by resizing the window very fast, a small portion of the window is not drawn with the correct color.

This bug does not happen on windows.

Adding a call to redraw() in display() works around the issue.

My guess is that only the previous size of the window is marked as dirty and redrawn by GLCanvas.
Comment 1 morgan.mathiaut 2020-04-02 16:02:02 CEST
Hi,

Any update for this issue ?

Regards
Comment 2 crougier 2020-05-27 12:51:15 CEST
I tested 2.4.0-rc-20200306 and the bug is still there
Comment 3 Sven Gothel 2023-09-29 03:45:09 CEST
Can't reproduce with (anymore)
com.jogamp.opengl.test.junit.jogl.swt.TestSWTBug643AsyncExec

Tested with SWT 4.26 (as deployed in JOGL for build and testing).

TestSWTBug643AsyncExec does test our GLCanvas as well as NewtCanvasSWT
without animator by default - hence should be comparable.

If the bug still persists please reopen and discuss.
Thank you.