mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-5704 displaySyncOFF: javax/swing/JDialog/Transparency/TransparencyTest.java: JDialog transparency lost upon iconify/deiconify sequence
Corrected startRedraw method to call setNeedsDisplay in displaySync=false mode
This commit is contained in:
committed by
Alexey Ushakov
parent
0fc303d51a
commit
bd291402b1
@@ -186,8 +186,12 @@ BOOL isDisplaySyncEnabled() {
|
||||
}
|
||||
|
||||
- (void)startRedraw {
|
||||
if (self.ctx != nil) {
|
||||
[self.ctx performSelectorOnMainThread:@selector(startRedraw:) withObject:self waitUntilDone:NO];
|
||||
if (isDisplaySyncEnabled()) {
|
||||
if (self.ctx != nil) {
|
||||
[self.ctx performSelectorOnMainThread:@selector(startRedraw:) withObject:self waitUntilDone:NO];
|
||||
}
|
||||
} else {
|
||||
[self performSelectorOnMainThread:@selector(setNeedsDisplay) withObject:nil waitUntilDone:NO];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user