8194135: The content in textArea can not be pasted after clicking "Copy" button.
Reviewed-by: serb, ssadetsky
--- a/src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java Fri Jan 19 16:57:56 2018 +0000
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java Tue Jan 23 13:46:34 2018 +0530
@@ -630,19 +630,6 @@
super.focusLost(e);
getComponent().repaint();
}
-
- // Fix for 5100950: textarea.getSelectedText() returns the de-selected text, on XToolkit
- // Restoring Motif behaviour
- // If the text is unhighlighted then we should sets the selection range to zero
- @Override
- public void setSelectionVisible(boolean vis) {
- if (vis){
- super.setSelectionVisible(vis);
- }else{
- // In order to de-select the selection
- setDot(getDot());
- }
- }
}
@SuppressWarnings("serial") // JDK-implementation class