diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-03-12 09:40:10 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-03-12 09:40:10 +0100 |
commit | 140168aa4bee8568f1a72e2a955f797cf1903e34 (patch) | |
tree | bb68bbcc53d97ce9dc157cb8dd50ead1d383d682 /logic/work.cpp | |
parent | 53ce853c6b8ad2228a2849d7d7ade73487aa2ccb (diff) |
logic/work: fix held center race
Diffstat (limited to 'logic/work.cpp')
-rw-r--r-- | logic/work.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/work.cpp b/logic/work.cpp index 99e4f709..090158eb 100644 --- a/logic/work.cpp +++ b/logic/work.cpp @@ -66,8 +66,8 @@ Work::Work(Mappings& m, event_handler& ev, QFrame* frame, std::shared_ptr<dylib sc(std::make_shared<Shortcuts>()), keys { #if defined OTR_HAS_KEY_UP_SUPPORT - key_tuple(s.key_center1, [&](bool x) { tracker->set_held_center(x); }, false), - key_tuple(s.key_center2, [&](bool x) { tracker->set_held_center(x); }, false), + key_tuple(s.key_center1, [&](bool x) { tracker->set_center(); tracker->set_held_center(x); }, false), + key_tuple(s.key_center2, [&](bool x) { tracker->set_center(); tracker->set_held_center(x); }, false), #else key_tuple(s.key_center1, [&](bool) { tracker->set_center(); }, true), key_tuple(s.key_center2, [&](bool) { tracker->set_center(); }, true), |