8013424: Regression: java.awt.datatransfer.FlavorListeners not notified on Linux/Java 7
Reviewed-by: anthony
This commit is contained in:
parent
36b5e14b31
commit
e460380426
@ -179,6 +179,7 @@ public final class XClipboard extends SunClipboard implements OwnershipListener
|
||||
}
|
||||
synchronized (XClipboard.classLock) {
|
||||
if (targetsAtom2Clipboard != null && !targetsAtom2Clipboard.isEmpty()) {
|
||||
// The viewer is still registered, schedule next poll.
|
||||
XToolkit.schedule(this, XClipboard.getPollInterval());
|
||||
}
|
||||
}
|
||||
@ -191,7 +192,8 @@ public final class XClipboard extends SunClipboard implements OwnershipListener
|
||||
final XSelectionEvent xse = ev.get_xselection();
|
||||
XClipboard clipboard = null;
|
||||
synchronized (XClipboard.classLock) {
|
||||
if (targetsAtom2Clipboard != null && !targetsAtom2Clipboard.isEmpty()) {
|
||||
if (targetsAtom2Clipboard != null && targetsAtom2Clipboard.isEmpty()) {
|
||||
// The viewer was unregistered, remove the dispatcher.
|
||||
XToolkit.removeEventDispatcher(XWindow.getXAWTRootWindow().getWindow(), this);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user