From 086ba3ed9b7adff3fa0f8c94e82a47e4c564aabe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Garramu=C3=B1o?= Date: Fri, 8 Mar 2024 11:27:50 -0300 Subject: [PATCH] Reverted focus change. --- mrv2/lib/mrvGL/mrvTimelineWidget.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mrv2/lib/mrvGL/mrvTimelineWidget.cpp b/mrv2/lib/mrvGL/mrvTimelineWidget.cpp index e3251c604..7e8ac2150 100644 --- a/mrv2/lib/mrvGL/mrvTimelineWidget.cpp +++ b/mrv2/lib/mrvGL/mrvTimelineWidget.cpp @@ -699,6 +699,16 @@ namespace mrv int TimelineWidget::enterEvent() { TLRENDER_P(); + + bool takeFocus = true; + Fl_Widget* focusWidget = Fl::focus(); + TimelineClass* c = p.ui->uiTimeWindow; + if (focusWidget == c->uiFrame || focusWidget == c->uiStartFrame || + focusWidget == c->uiEndFrame) + takeFocus = false; + // if (Fl::focus() == nullptr) + if (takeFocus) + take_focus(); p.timelineWindow->cursorEnter(true); return 1; }