Skip to content

Commit

Permalink
JBR-6032 WLToolkit: Uninitialized WLComponentPeer sends paint requests
Browse files Browse the repository at this point in the history
Protected surfaceAssigned from MT access
  • Loading branch information
avu authored and jbrbot committed Nov 8, 2024
1 parent 145d640 commit e5a3802
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public class WLComponentPeer implements ComponentPeer {
};

private long nativePtr;
private volatile boolean surfaceAssigned = false;
protected final Component target;

// Graphics devices this top-level component is visible on
Expand All @@ -94,7 +95,6 @@ public class WLComponentPeer implements ComponentPeer {
boolean paintPending = false;
boolean isLayouting = false;
boolean visible = false;
boolean surfaceAssigned = false;

int x;
int y;
Expand Down

0 comments on commit e5a3802

Please sign in to comment.