mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-26 13:53:14 +08:00
Removed ignoreNumLock option. It doesn't really seem to be
necessary.
This commit is contained in:
@@ -445,11 +445,6 @@ CServerProxy::enter()
|
||||
m_seqNum = seqNum;
|
||||
}
|
||||
|
||||
// ignore num lock if so desired
|
||||
if (m_ignoreNumLock) {
|
||||
mask &= ~KeyModifierNumLock;
|
||||
}
|
||||
|
||||
// forward
|
||||
getClient()->enter(x, y, seqNum, static_cast<KeyModifierMask>(mask), false);
|
||||
}
|
||||
@@ -525,12 +520,6 @@ CServerProxy::keyDown()
|
||||
mask2 != static_cast<KeyModifierMask>(mask))
|
||||
LOG((CLOG_DEBUG1 "key down translated to id=%d, mask=0x%04x", id2, mask2));
|
||||
|
||||
// ignore num lock if so desired
|
||||
if (id2 == kKeyNumLock && m_ignoreNumLock) {
|
||||
LOG((CLOG_DEBUG1 "ignoring num lock"));
|
||||
return;
|
||||
}
|
||||
|
||||
// forward
|
||||
getClient()->keyDown(id2, mask2, button);
|
||||
}
|
||||
@@ -555,12 +544,6 @@ CServerProxy::keyRepeat()
|
||||
mask2 != static_cast<KeyModifierMask>(mask))
|
||||
LOG((CLOG_DEBUG1 "key repeat translated to id=%d, mask=0x%04x", id2, mask2));
|
||||
|
||||
// ignore num lock if so desired
|
||||
if (id2 == kKeyNumLock && m_ignoreNumLock) {
|
||||
LOG((CLOG_DEBUG1 "ignoring num lock"));
|
||||
return;
|
||||
}
|
||||
|
||||
// forward
|
||||
getClient()->keyRepeat(id2, mask2, count, button);
|
||||
}
|
||||
@@ -584,12 +567,6 @@ CServerProxy::keyUp()
|
||||
mask2 != static_cast<KeyModifierMask>(mask))
|
||||
LOG((CLOG_DEBUG1 "key up translated to id=%d, mask=0x%04x", id2, mask2));
|
||||
|
||||
// ignore num lock if so desired
|
||||
if (id2 == kKeyNumLock && m_ignoreNumLock) {
|
||||
LOG((CLOG_DEBUG1 "ignoring num lock"));
|
||||
return;
|
||||
}
|
||||
|
||||
// forward
|
||||
getClient()->keyUp(id2, mask2, button);
|
||||
}
|
||||
@@ -707,9 +684,6 @@ CServerProxy::resetOptions()
|
||||
if (m_heartRate >= 0.0) {
|
||||
CProtocolUtil::writef(getOutputStream(), kMsgCNoop);
|
||||
}
|
||||
|
||||
// don't ignore num lock
|
||||
m_ignoreNumLock = false;
|
||||
}
|
||||
|
||||
void
|
||||
@@ -752,9 +726,6 @@ CServerProxy::setOptions()
|
||||
CProtocolUtil::writef(getOutputStream(), kMsgCNoop);
|
||||
}
|
||||
}
|
||||
else if (options[i] == kOptionIgnoreNumLock) {
|
||||
m_ignoreNumLock = true;
|
||||
}
|
||||
if (id != kKeyModifierIDNull) {
|
||||
m_modifierTranslationTable[id] =
|
||||
static_cast<KeyModifierID>(options[i + 1]);
|
||||
|
||||
@@ -128,7 +128,6 @@ private:
|
||||
SInt32 m_xMouse, m_yMouse;
|
||||
|
||||
bool m_ignoreMouse;
|
||||
bool m_ignoreNumLock;
|
||||
|
||||
KeyModifierID m_modifierTranslationTable[kKeyModifierIDLast];
|
||||
double m_heartRate;
|
||||
|
||||
@@ -646,9 +646,6 @@ CConfig::getOptionName(OptionID id)
|
||||
if (id == kOptionXTestXineramaUnaware) {
|
||||
return "xtestIsXineramaUnaware";
|
||||
}
|
||||
if (id == kOptionIgnoreNumLock) {
|
||||
return "ignoreNumLock";
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -658,8 +655,7 @@ CConfig::getOptionValue(OptionID id, OptionValue value)
|
||||
if (id == kOptionHalfDuplexCapsLock ||
|
||||
id == kOptionHalfDuplexNumLock ||
|
||||
id == kOptionScreenSaverSync ||
|
||||
id == kOptionXTestXineramaUnaware ||
|
||||
id == kOptionIgnoreNumLock) {
|
||||
id == kOptionXTestXineramaUnaware) {
|
||||
return (value != 0) ? "true" : "false";
|
||||
}
|
||||
if (id == kOptionModifierMapForShift ||
|
||||
@@ -895,10 +891,6 @@ CConfig::readSectionScreens(std::istream& s)
|
||||
addOption(screen, kOptionXTestXineramaUnaware,
|
||||
parseBoolean(value));
|
||||
}
|
||||
else if (name == "ignoreNumLock") {
|
||||
addOption(screen, kOptionIgnoreNumLock,
|
||||
parseBoolean(value));
|
||||
}
|
||||
else {
|
||||
// unknown argument
|
||||
throw XConfigRead("unknown argument");
|
||||
|
||||
@@ -55,7 +55,6 @@ static const OptionID kOptionScreenSwitchDelay = OPTION_CODE("SSWT");
|
||||
static const OptionID kOptionScreenSwitchTwoTap = OPTION_CODE("SSTT");
|
||||
static const OptionID kOptionScreenSaverSync = OPTION_CODE("SSVR");
|
||||
static const OptionID kOptionXTestXineramaUnaware = OPTION_CODE("XTXU");
|
||||
static const OptionID kOptionIgnoreNumLock = OPTION_CODE("IGNL");
|
||||
//@}
|
||||
|
||||
#undef OPTION_CODE
|
||||
|
||||
Reference in New Issue
Block a user