Index: remoting/host/linux/x_server_clipboard.cc |
diff --git a/remoting/host/linux/x_server_clipboard.cc b/remoting/host/linux/x_server_clipboard.cc |
index 230d93b67e03e20b8849afd6cff1f947f9b8be5d..80be6cff38e2db32349577017943a356f54804c6 100644 |
--- a/remoting/host/linux/x_server_clipboard.cc |
+++ b/remoting/host/linux/x_server_clipboard.cc |
@@ -81,8 +81,6 @@ void XServerClipboard::Init(Display* display, |
LOG(ERROR) << "XInternAtoms failed"; |
} |
- XFixesSelectSelectionInput(display_, clipboard_window_, XA_PRIMARY, |
- XFixesSetSelectionOwnerNotifyMask); |
XFixesSelectSelectionInput(display_, clipboard_window_, clipboard_atom_, |
XFixesSetSelectionOwnerNotifyMask); |
} |
@@ -154,8 +152,8 @@ void XServerClipboard::OnSetSelectionOwnerNotify(Atom selection, |
return; |
} |
- // Only process PRIMARY and CLIPBOARD selections. |
- if (selection != clipboard_atom_ && selection != XA_PRIMARY) |
+ // Only process CLIPBOARD selections. |
+ if (selection != clipboard_atom_) |
return; |
// If we own the selection, don't request details for it. |