Fix RegionFx processor selection, leave notify

This fixes "delete" keyboard shortcut when the mouse.
Previously moving the mouse from the box to the selected
processor unset the `current_rfx_box` pointer.
This commit is contained in:
Robin Gareus
2025-04-09 20:18:29 +02:00
parent 58d7189e9c
commit b2a5920971

View File

@@ -788,7 +788,13 @@ RegionEditor::RegionFxBox::enter_notify (GdkEventCrossing* ev)
bool
RegionEditor::RegionFxBox::leave_notify (GdkEventCrossing* ev)
{
if (ev->detail == GDK_NOTIFY_INFERIOR || ev->detail == GDK_NOTIFY_NONLINEAR || ev->detail == GDK_NOTIFY_NONLINEAR_VIRTUAL) {
/* leaving towards a child - here a Processor Entry */
return false;
}
current_rfx_box = 0;
_display.select_none ();
return false;
}