Fix various cursor problems.

Add a new scoped cursor system that makes it much harder to screw up and end up
with stick cursors and so on.
This commit is contained in:
David Robillard 2014-12-20 01:11:28 -05:00
parent 5d8021bf44
commit 670938c8c4
13 changed files with 254 additions and 149 deletions

View file

@ -27,6 +27,7 @@
#include "ardour/types.h"
#include "cursor_context.h"
#include "editor_items.h"
namespace ARDOUR {
@ -240,6 +241,7 @@ private:
ARDOUR::framepos_t _raw_grab_frame; ///< unsnapped frame that the mouse was at when start_grab was called, or 0
ARDOUR::framepos_t _grab_frame; ///< adjusted_frame that the mouse was at when start_grab was called, or 0
ARDOUR::framepos_t _last_pointer_frame; ///< adjusted_frame the last time a motion occurred
CursorContext::Handle _cursor_ctx; ///< cursor change context
};
class RegionDrag;