mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8152974: AWT hang occurrs when sequenced events arrive out of sequence
Reviewed-by: serb, prr, ssadetsky
This commit is contained in:
parent
e6587461a4
commit
00465d6e60
2 changed files with 173 additions and 5 deletions
|
@ -135,11 +135,7 @@ class SequencedEvent extends AWTEvent implements ActiveEvent {
|
|||
if (Thread.currentThread() instanceof EventDispatchThread) {
|
||||
EventDispatchThread edt = (EventDispatchThread)
|
||||
Thread.currentThread();
|
||||
edt.pumpEvents(SentEvent.ID, new Conditional() {
|
||||
public boolean evaluate() {
|
||||
return !SequencedEvent.this.isFirstOrDisposed();
|
||||
}
|
||||
});
|
||||
edt.pumpEvents(ID, () -> !SequencedEvent.this.isFirstOrDisposed());
|
||||
} else {
|
||||
if (fxAppThreadIsDispatchThread) {
|
||||
fxCheckSequenceThread.start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue