#123 Read clipboard sharing option and pass it to all clients
This commit is contained in:
parent
130458f77a
commit
3c94310c9e
|
@ -833,6 +833,9 @@ ServerProxy::setOptions()
|
||||||
// update keep alive
|
// update keep alive
|
||||||
setKeepAliveRate(1.0e-3 * static_cast<double>(options[i + 1]));
|
setKeepAliveRate(1.0e-3 * static_cast<double>(options[i + 1]));
|
||||||
}
|
}
|
||||||
|
else if (options[i] == kOptionClipboardSharing) {
|
||||||
|
LOG((CLOG_DEBUG "disable clipboard sharing"));
|
||||||
|
}
|
||||||
if (id != kKeyModifierIDNull) {
|
if (id != kKeyModifierIDNull) {
|
||||||
m_modifierTranslationTable[id] =
|
m_modifierTranslationTable[id] =
|
||||||
static_cast<KeyModifierID>(options[i + 1]);
|
static_cast<KeyModifierID>(options[i + 1]);
|
||||||
|
|
|
@ -765,6 +765,10 @@ Config::readSectionOptions(ConfigReadContext& s)
|
||||||
else if (name == "win32KeepForeground") {
|
else if (name == "win32KeepForeground") {
|
||||||
addOption("", kOptionWin32KeepForeground, s.parseBoolean(value));
|
addOption("", kOptionWin32KeepForeground, s.parseBoolean(value));
|
||||||
}
|
}
|
||||||
|
else if (name == "enableClipboard") {
|
||||||
|
addOption("", kOptionClipboardSharing, s.parseBoolean(value));
|
||||||
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
handled = false;
|
handled = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,6 +67,7 @@ static const OptionID kOptionXTestXineramaUnaware = OPTION_CODE("XTXU");
|
||||||
static const OptionID kOptionScreenPreserveFocus = OPTION_CODE("SFOC");
|
static const OptionID kOptionScreenPreserveFocus = OPTION_CODE("SFOC");
|
||||||
static const OptionID kOptionRelativeMouseMoves = OPTION_CODE("MDLT");
|
static const OptionID kOptionRelativeMouseMoves = OPTION_CODE("MDLT");
|
||||||
static const OptionID kOptionWin32KeepForeground = OPTION_CODE("_KFW");
|
static const OptionID kOptionWin32KeepForeground = OPTION_CODE("_KFW");
|
||||||
|
static const OptionID kOptionClipboardSharing = OPTION_CODE("CLPS");
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
//! @name Screen switch corner enumeration
|
//! @name Screen switch corner enumeration
|
||||||
|
|
Loading…
Reference in New Issue