use ::main_modifier_state() in some more places
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 3 Oct 2015 02:06:02 +0000 (22:06 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 3 Oct 2015 02:08:14 +0000 (22:08 -0400)
libs/surfaces/mackie/strip.cc

index 68978b3de91b3ed1e1c5129d616db98142322366..edf034e5c693da7352a94002ab7c52afd256de12 100644 (file)
@@ -451,7 +451,7 @@ Strip::select_event (Button&, ButtonState bs)
        
        if (bs == press) {
                
-               int ms = _surface->mcp().modifier_state();
+               int ms = _surface->mcp().main_modifier_state();
 
                if (ms & MackieControlProtocol::MODIFIER_CMDALT) {
                        _controls_locked = !_controls_locked;
@@ -484,7 +484,7 @@ Strip::vselect_event (Button&, ButtonState bs)
 {
        if (bs == press) {
 
-               int ms = _surface->mcp().modifier_state();
+               int ms = _surface->mcp().main_modifier_state();
                                
                if (ms & MackieControlProtocol::MODIFIER_SHIFT) {
 
@@ -571,7 +571,7 @@ Strip::handle_button (Button& button, ButtonState bs)
                                _surface->mcp().add_down_button ((AutomationType) control->parameter().type(), _surface->number(), _index);
                                
                                float new_value;
-                               int ms = _surface->mcp().modifier_state();
+                               int ms = _surface->mcp().main_modifier_state();
                                
                                if (ms & MackieControlProtocol::MODIFIER_SHIFT) {
                                        /* reset to default/normal value */