Put playhead on top of everything.
authorDavid Robillard <d@drobilla.net>
Sat, 17 Jan 2015 00:09:47 +0000 (19:09 -0500)
committerDavid Robillard <d@drobilla.net>
Sat, 17 Jan 2015 00:13:56 +0000 (19:13 -0500)
commitb759fd5879f3997e216714c36c6b4145112cf5b9
tree4d3429534650120a3aada042dd6427aca8e5b092
parentd194ec9135e9f2e5566c925febec4354b0e4e072
Put playhead on top of everything.

Achieve this by adding a new hscroll group just for cursors.

That requires a slightly smarter window_to_canvas() to deal with overlapping
sensitive scroll groups.  New rule is that scroll groups can overlap, but the
most sensitive one found from the top down will be chosen to translate
coordinates.  This basically means don't overlap scroll groups with different
sensitivities.

In the presence of scroll groups, having a canvas-wide window_to_canvas()
and/or canvas_to_window() fundamentally makes no sense.  At some point in the
glorious future we should kill those and use only item-relative coordinate
translation.
gtk2_ardour/editor.h
gtk2_ardour/editor_canvas.cc
gtk2_ardour/editor_cursors.cc
gtk2_ardour/public_editor.h
libs/canvas/canvas.cc
libs/canvas/canvas/scroll_group.h