function maus_action(eventSrc,eventData,action)

fig = findobj('Type','figure','-and','Tag','main');
set(fig,'WindowButtonMotionFcn',@local_fcn_mouse_axes);
% switch action
%     case 'on'
%         set(fig,'WindowButtonMotionFcn',@local_fcn_mouse_axes);
% end

    function local_fcn_mouse_axes(eventSrc,eventData)
      obj = hittest(eventSrc);
      switch get(obj,'Tag')
        case 'Axes1'
            function_irgendwas();
            set(fig,'WindowButtonMotionFcn',@local_fcn_mouse_figure);
      end
    end

    function local_fcn_mouse_figure(eventSrc,eventData)
      obj = hittest(eventSrc);
      switch get(obj,'Tag')
        case 'main'
            set(fig,'WindowButtonMotionFcn',@local_fcn_mouse_axes);
      end
    end

end