Bug 573782 - [BigSur] GLCanvas does not update after PaintListener.paintControl
Summary: [BigSur] GLCanvas does not update after PaintListener.paintControl
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.14   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 575659 569361
  Show dependency tree
 
Reported: 2021-05-26 08:07 EDT by Mario Marinato CLA
Modified: 2021-08-27 04:51 EDT (History)
2 users (show)

See Also:


Attachments
Snippet that reproduces the bug (1.90 KB, text/plain)
2021-05-28 07:17 EDT, Mario Marinato CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Marinato CLA 2021-05-26 08:07:50 EDT
If I add a PaintListener on a GLCanvas, the canvas is not updated to reflect the drawings made on the paintControl method.

Before BigSur, I could avoid this bad behavior by adding a child component on the canvas.  I added a new Label as a child of the GLCanvas and sized it to 1px x 1px.  Doing this made the drawings made on paintControl appear.

But now even this workaround is useless.
Comment 1 Lakshmi P Shanmugam CLA 2021-05-28 04:02:19 EDT
Can you please provide a snippet to reproduce the problem?
Comment 2 Mario Marinato CLA 2021-05-28 07:17:45 EDT
Created attachment 286469 [details]
Snippet that reproduces the bug

There you go, a snippet.

Comment / uncomment lines 33 and 36 to see the difference in behavior.

This same snippet can be used to reproduce Bug 570649.