Command-line option to choose an X selection.
authorSimon Tatham <anakin@pobox.com>
Wed, 18 Mar 2020 20:59:12 +0000 (20:59 +0000)
committerakallabeth <akallabeth@users.noreply.github.com>
Thu, 25 Feb 2021 08:51:41 +0000 (09:51 +0100)
commitaa9b644e3a645d763b17fec29f72064b4a9caa3b
tree29bb5283ecb8925a6e95c847285f61e78ee21ca7
parent818480be91491d05e88d893780c411188a9aac1e
Command-line option to choose an X selection.

I personally find it more convenient to have pasted data written to
the X11 PRIMARY selection, so that I can paste it with a fast middle-
button click, than to write to CLIPBOARD which typically needs a key
sequence or menu action.

This commit adds a command-line option to let me express that
preference: now I can say "/clipboard:use-selection:PRIMARY" on the
command line, which not only enables clipboard transfer but also says
which X selection I want it to talk to. The previous options
"+clipboard" and "-clipboard" are also still supported.

(cherry picked from commit 64948b96c4c4640078ce563b165a907251fd6f20)
client/X11/xf_cliprdr.c
client/common/cmdline.c
client/common/cmdline.h
include/freerdp/settings.h
libfreerdp/core/settings.c