#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
|
||||
setKeepAliveRate(1.0e-3 * static_cast<double>(options[i + 1]));
|
||||
}
|
||||
else if (options[i] == kOptionClipboardSharing) {
|
||||
LOG((CLOG_DEBUG "disable clipboard sharing"));
|
||||
}
|
||||
if (id != kKeyModifierIDNull) {
|
||||
m_modifierTranslationTable[id] =
|
||||
static_cast<KeyModifierID>(options[i + 1]);
|
||||
|
|
|
@ -765,6 +765,10 @@ Config::readSectionOptions(ConfigReadContext& s)
|
|||
else if (name == "win32KeepForeground") {
|
||||
addOption("", kOptionWin32KeepForeground, s.parseBoolean(value));
|
||||
}
|
||||
else if (name == "enableClipboard") {
|
||||
addOption("", kOptionClipboardSharing, s.parseBoolean(value));
|
||||
}
|
||||
|
||||
else {
|
||||
handled = false;
|
||||
}
|
||||
|
|
|
@ -67,6 +67,7 @@ static const OptionID kOptionXTestXineramaUnaware = OPTION_CODE("XTXU");
|
|||
static const OptionID kOptionScreenPreserveFocus = OPTION_CODE("SFOC");
|
||||
static const OptionID kOptionRelativeMouseMoves = OPTION_CODE("MDLT");
|
||||
static const OptionID kOptionWin32KeepForeground = OPTION_CODE("_KFW");
|
||||
static const OptionID kOptionClipboardSharing = OPTION_CODE("CLPS");
|
||||
//@}
|
||||
|
||||
//! @name Screen switch corner enumeration
|
||||
|
|
Loading…
Reference in New Issue