mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-13 23:25:27 +08:00
#123 Made disable clipboard take effect on server
This commit is contained in:
committed by
Andrew Nelless
parent
9c0bac7c7d
commit
673829f511
@@ -765,7 +765,7 @@ Config::readSectionOptions(ConfigReadContext& s)
|
||||
else if (name == "win32KeepForeground") {
|
||||
addOption("", kOptionWin32KeepForeground, s.parseBoolean(value));
|
||||
}
|
||||
else if (name == "enableClipboard") {
|
||||
else if (name == "clipboardSharing") {
|
||||
addOption("", kOptionClipboardSharing, s.parseBoolean(value));
|
||||
}
|
||||
|
||||
@@ -1380,6 +1380,9 @@ Config::getOptionName(OptionID id)
|
||||
if (id == kOptionScreenPreserveFocus) {
|
||||
return "preserveFocus";
|
||||
}
|
||||
if (id == kOptionClipboardSharing) {
|
||||
return "clipboardSharing";
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -1396,7 +1399,8 @@ Config::getOptionValue(OptionID id, OptionValue value)
|
||||
id == kOptionXTestXineramaUnaware ||
|
||||
id == kOptionRelativeMouseMoves ||
|
||||
id == kOptionWin32KeepForeground ||
|
||||
id == kOptionScreenPreserveFocus) {
|
||||
id == kOptionScreenPreserveFocus ||
|
||||
id == kOptionClipboardSharing) {
|
||||
return (value != 0) ? "true" : "false";
|
||||
}
|
||||
if (id == kOptionModifierMapForShift ||
|
||||
|
||||
Reference in New Issue
Block a user