Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Unified Diff: remoting/host/linux/x_server_clipboard.cc

Issue 17513003: Chromoting Host: Don't listen for PRIMARY selection changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698