mirror of
https://github.com/debauchee/barrier.git
synced 2025-06-22 04:27:02 +02:00
Changes from mercurial repository.
This commit is contained in:
parent
44bb32f476
commit
98c68897d8
135 changed files with 2686 additions and 26965 deletions
|
@ -891,6 +891,10 @@ CConfig::readSectionScreens(CConfigReadContext& s)
|
|||
addOption(screen, kOptionScreenSwitchCornerSize,
|
||||
s.parseInt(value));
|
||||
}
|
||||
else if (name == "preserveFocus") {
|
||||
addOption(screen, kOptionScreenPreserveFocus,
|
||||
s.parseBoolean(value));
|
||||
}
|
||||
else {
|
||||
// unknown argument
|
||||
throw XConfigRead(s, "unknown argument \"%{1}\"", name);
|
||||
|
@ -1332,6 +1336,9 @@ CConfig::getOptionName(OptionID id)
|
|||
if (id == kOptionWin32KeepForeground) {
|
||||
return "win32KeepForeground";
|
||||
}
|
||||
if (id == kOptionScreenPreserveFocus) {
|
||||
return "preserveFocus";
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1344,7 +1351,8 @@ CConfig::getOptionValue(OptionID id, OptionValue value)
|
|||
id == kOptionScreenSaverSync ||
|
||||
id == kOptionXTestXineramaUnaware ||
|
||||
id == kOptionRelativeMouseMoves ||
|
||||
id == kOptionWin32KeepForeground) {
|
||||
id == kOptionWin32KeepForeground ||
|
||||
id == kOptionScreenPreserveFocus) {
|
||||
return (value != 0) ? "true" : "false";
|
||||
}
|
||||
if (id == kOptionModifierMapForShift ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue