mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-29 14:52:52 +00:00
7149913: [macosx] Deadlock in LWTextComponentPeer
Reviewed-by: anthony, art
This commit is contained in:
parent
09db79364b
commit
6412600e72
@ -213,16 +213,8 @@ public abstract class LWComponentPeer<T extends Component, D extends JComponent>
|
||||
SwingUtilities3.setDelegateRepaintManager(delegate, new RepaintManager() {
|
||||
@Override
|
||||
public void addDirtyRegion(final JComponent c, final int x, final int y, final int w, final int h) {
|
||||
if (SunToolkit.isDispatchThreadForAppContext(getTarget())) {
|
||||
synchronized (getDelegateLock()) {
|
||||
if (getDelegate().isPaintingForPrint()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
Rectangle res = SwingUtilities.convertRectangle(
|
||||
c, new Rectangle(x, y, w, h), getDelegate());
|
||||
repaintPeer(res);
|
||||
repaintPeer(SwingUtilities.convertRectangle(
|
||||
c, new Rectangle(x, y, w, h), getDelegate()));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user