fix thinko in canvas logic (fixes mouse cursor on desensitized playhead)
This commit is contained in:
parent
847f1e54c1
commit
a7c4ab3247
@ -637,7 +637,7 @@ GtkCanvas::pick_current_item (Duple const & point, int state)
|
|||||||
|
|
||||||
if (within_items.empty()) {
|
if (within_items.empty()) {
|
||||||
|
|
||||||
/* no items at point, just send leave event below */
|
/* no items at point, do not send a LEAVE event in this case */
|
||||||
_new_current_item = 0;
|
_new_current_item = 0;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -649,11 +649,11 @@ GtkCanvas::pick_current_item (Duple const & point, int state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_new_current_item = const_cast<Item*> (within_items.front());
|
_new_current_item = const_cast<Item*> (within_items.front());
|
||||||
}
|
|
||||||
|
|
||||||
if (_new_current_item != _current_item) {
|
if (_new_current_item != _current_item) {
|
||||||
deliver_enter_leave (point, state);
|
deliver_enter_leave (point, state);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (_current_item) {
|
if (_current_item) {
|
||||||
DEBUG_TRACE (PBD::DEBUG::CanvasEnterLeave, string_compose ("CURRENT ITEM %1/%2\n", _new_current_item->whatami(), _current_item->name));
|
DEBUG_TRACE (PBD::DEBUG::CanvasEnterLeave, string_compose ("CURRENT ITEM %1/%2\n", _new_current_item->whatami(), _current_item->name));
|
||||||
|
Loading…
Reference in New Issue
Block a user