Skip to content

Commit

Permalink
More bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed May 13, 2024
1 parent a8ad0cf commit 4eb3f71
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
5 changes: 5 additions & 0 deletions mrv2/lib/mrvEdit/mrvEditCallbacks.cpp
Expand Up @@ -2656,6 +2656,10 @@ namespace mrv
<< TimelineGroup->h() << std::endl;
#endif

// This is needed as XWayland and Wayland would leave traces of the
// toolbar icons.
TimelineGroup->redraw();

// EditMode::kNone is used when we go to presentation mode.
if (mode != EditMode::kNone)
{
Expand All @@ -2665,6 +2669,7 @@ namespace mrv
msg["height"] = H;
tcp->pushMessage(msg);
}

}

} // namespace mrv
7 changes: 5 additions & 2 deletions mrv2/lib/mrvFl/mrvContextObject.cpp
Expand Up @@ -48,8 +48,11 @@ namespace mrv

void ContextObject::timerEvent()
{
_p->context->tick();

if (_p && _p->context)
{
_p->context->tick();
}

Fl::repeat_timeout(kTimeout, (Fl_Timeout_Handler)timerEvent_cb, this);
}

Expand Down
5 changes: 3 additions & 2 deletions mrv2/lib/mrvFl/mrvTimelinePlayer.cpp
Expand Up @@ -33,7 +33,7 @@ namespace

namespace
{
const double kTimeout = 0.005;
const double kTimeout = 0.008;
}

namespace mrv
Expand Down Expand Up @@ -621,7 +621,8 @@ namespace mrv
//! This signal is emitted when the current time is changed.
void TimelinePlayer::currentTimeChanged(const otime::RationalTime& value)
{
App::ui->uiTimeline->redraw();
auto timeline = App::ui->uiTimeline;
timeline->redraw();
TimelineClass* c = App::ui->uiTimeWindow;
c->uiFrame->setTime(value);
}
Expand Down
6 changes: 4 additions & 2 deletions mrv2/lib/mrvWidgets/mrViewer.fl
Expand Up @@ -834,8 +834,10 @@ bool presentation = uiView->getPresentationMode();
if (!presentation)
{
if (value) mrv::editMode = mrv::EditMode::kFull;
else mrv::editMode = mrv::EditMode::kSaved;
mrv::toggle_bottom_bar(nullptr, v);}
else mrv::editMode = mrv::EditMode::kTimeline;
set_edit_mode_cb(mrv::editMode, v);
//mrv::toggle_bottom_bar(nullptr, v);
}
else
{
if (value) mrv::editMode = mrv::EditMode::kFull;
Expand Down

0 comments on commit 4eb3f71

Please sign in to comment.