Skip to content

Commit

Permalink
#4459 remote selections should default to 'ALL'
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 8, 2025
1 parent 188a218 commit c1bc575
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xpra/client/mixins/clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,21 +124,21 @@ def parse_server_capabilities(self, c: typedict) -> bool:
log.warn("Warning: incompatible clipboard direction settings")
log.warn(" server setting: %s, client setting: %s",
self.server_clipboard_direction, self.client_clipboard_direction)
clipboards: Sequence[str] = ()
all_clipboards: Sequence[str] = ()
try:
from xpra.clipboard.core import ALL_CLIPBOARDS
clipboards = ALL_CLIPBOARDS
all_clipboards = ALL_CLIPBOARDS
except ImportError:
log("no clipboard core!")
self.server_clipboards = c.strtupleget("clipboards", clipboards)
self.server_clipboards = c.strtupleget("clipboards", all_clipboards)
log("server clipboard: supported=%s, direction=%s",
self.server_clipboard, self.server_clipboard_direction)
log("client clipboard: supported=%s, direction=%s",
self.client_supports_clipboard, self.client_clipboard_direction)
self.clipboard_enabled = self.client_supports_clipboard and self.server_clipboard
self.server_clipboard_greedy = c.boolget("clipboard.greedy")
self.server_clipboard_want_targets = c.boolget("clipboard.want_targets")
self.server_clipboard_selections = c.strtupleget("clipboard.selections", CLIPBOARDS)
self.server_clipboard_selections = c.strtupleget("clipboard.selections", all_clipboards)
self.server_clipboard_preferred_targets = c.strtupleget("clipboard.preferred-targets", ())
log("server clipboard: greedy=%s, want_targets=%s, selections=%s",
self.server_clipboard_greedy, self.server_clipboard_want_targets, self.server_clipboard_selections)
Expand Down

0 comments on commit c1bc575

Please sign in to comment.