summaryrefslogtreecommitdiffhomepage
path: root/opentrack/shortcuts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/shortcuts.cpp')
-rw-r--r--opentrack/shortcuts.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/opentrack/shortcuts.cpp b/opentrack/shortcuts.cpp
index 2616bab3..62a6ffd9 100644
--- a/opentrack/shortcuts.cpp
+++ b/opentrack/shortcuts.cpp
@@ -111,7 +111,15 @@ void Shortcuts::reload(const std::vector<std::tuple<key_opts&, fun, bool>> &keys
auto fun = std::get<1>(kk);
K k;
bind_keyboard_shortcut(k, opts, held);
- keys.push_back(tt(k, [=](bool) -> void { fun(true); }, held));
+ keys.push_back(tt(k,
+ [=](unused_on_unix(bool, flag)) -> void {
+#ifdef _WIN32
+ fun(flag);
+#else
+ fun(true);
+#endif
+ },
+ held));
#ifndef _WIN32
const int idx = keys.size() - 1;
tt& kk_ = keys[idx];