fix thinko in canvas logic (fixes mouse cursor on desensitized playhead)

This commit is contained in:
Ben Loftis 2023-04-30 09:09:20 -05:00
parent 847f1e54c1
commit a7c4ab3247
1 changed files with 4 additions and 4 deletions

View File

@ -637,7 +637,7 @@ GtkCanvas::pick_current_item (Duple const & point, int state)
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;
} else {
@ -649,10 +649,10 @@ GtkCanvas::pick_current_item (Duple const & point, int state)
}
_new_current_item = const_cast<Item*> (within_items.front());
}
if (_new_current_item != _current_item) {
deliver_enter_leave (point, state);
if (_new_current_item != _current_item) {
deliver_enter_leave (point, state);
}
}
if (_current_item) {