Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Cam authored Mar 18, 2023
1 parent 7e6a6e4 commit 92d4177
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/nagaX11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class NagaDaemon
const int size = sizeof(struct input_event) * 64;
vector<CharAndChar> devices;
bool areSideBtnEnabled = true, areExtraBtnEnabled = true;
map<int, std::map<bool, MacroEventVector>> currentConfigPtr;
map<int, std::map<bool, MacroEventVector>> * currentConfigPtr;

void initConf()
{
Expand Down Expand Up @@ -227,7 +227,7 @@ class NagaDaemon
configSwitcher->unScheduleReMap();

currentConfigName = configName;
currentConfigPtr = macroEventsKeyMaps[currentConfigName];
currentConfigPtr = &macroEventsKeyMaps[currentConfigName];
if (!silent)
{
(void)!(system(("notify-send -t 200 'New config :' '" + configName + "'").c_str()));
Expand Down Expand Up @@ -312,7 +312,7 @@ class NagaDaemon
case 12:
case 13:
checkForWindowConfig();
thread(runActions, &currentConfigPtr[ev11->code - 1][ev11->value == 1]).detach(); // real key number = ev11->code - 1
thread(runActions, &(*currentConfigPtr)[ev11->code - 1][ev11->value == 1]).detach(); // real key number = ev11->code - 1
break;
}
}
Expand All @@ -328,7 +328,7 @@ class NagaDaemon
case 275:
case 276:
checkForWindowConfig();
thread(runActions, &currentConfigPtr[ev11->code - 262][ev11->value == 1]).detach(); // real key number = ev11->code - OFFSET (#262)
thread(runActions, &(*currentConfigPtr)[ev11->code - 262][ev11->value == 1]).detach(); // real key number = ev11->code - OFFSET (#262)
break;
}
}
Expand Down

0 comments on commit 92d4177

Please sign in to comment.