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

@ -61,6 +61,7 @@ class EditNoteDialog;
class NotePlayer;
class PatchChange;
class ItemCounts;
class CursorContext;
class MidiRegionView : public RegionView
{
@ -496,9 +497,8 @@ private:
PBD::ScopedConnection _mouse_mode_connection;
Gdk::Cursor* pre_enter_cursor;
Gdk::Cursor* pre_press_cursor;
Gdk::Cursor* pre_note_enter_cursor;
boost::shared_ptr<CursorContext> _note_cursor_ctx;
boost::shared_ptr<CursorContext> _press_cursor_ctx;
NotePlayer* _note_player;