Synchronize display call
- In TerminalUI a display call may be called from multiple threads, while only seen to happen on windows, should be synchronized. - Backport #1039 - Fixes #1040
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2023 the original author or authors.
|
||||
* Copyright 2023-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -257,7 +257,7 @@ public class TerminalUI implements ViewService {
|
||||
this.nonfullScreenViewRect = nonfullScreenViewRect;
|
||||
}
|
||||
|
||||
private void display() {
|
||||
private synchronized void display() {
|
||||
log.trace("display() start");
|
||||
size.copy(terminal.getSize());
|
||||
if (fullScreen) {
|
||||
|
||||
Reference in New Issue
Block a user