Skip to content

Commit

Permalink
#3884 call SelectXFSelectionInput on the root window
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Apr 2, 2024
1 parent 8e9c4fd commit 5d07825
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xpra/x11/gtk_x11/clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ def cleanup(self) -> None:
self.cleanup_window()

def make_proxy(self, selection) -> ClipboardProxy:
root_xid = X11Window.get_root_xid()
xid = self.window.get_xid()
proxy = ClipboardProxy(xid, selection)
proxy.set_want_targets(self._want_targets)
Expand All @@ -663,6 +664,7 @@ def make_proxy(self, selection) -> ClipboardProxy:
proxy.connect("send-clipboard-request", self._send_clipboard_request_handler)
with xsync:
X11Window.selectXFSelectionInput(xid, selection)
X11Window.selectXFSelectionInput(root_xid, selection)
return proxy


Expand Down

0 comments on commit 5d07825

Please sign in to comment.