diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-02-21 02:31:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-21 02:31:51 +0100 |
| commit | 0de22230138c3cda3aa3d824f87eb5d806e595fc (patch) | |
| tree | 5ff0dc12ff2076166ed331feda507e60c7c781f5 /src/wx/content_timeline.cc | |
| parent | ea070593476e687e151fe7ecbb05cd3825f0cf50 (diff) | |
Stop selecting content in the main window when clicking on the timeline.
This seems not very useful, but mostly it looks horrible on Linux with
the main and timeline windows fighting over which has the focus.
Diffstat (limited to 'src/wx/content_timeline.cc')
| -rw-r--r-- | src/wx/content_timeline.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wx/content_timeline.cc b/src/wx/content_timeline.cc index 7e8a74ae5..5d7f80b8a 100644 --- a/src/wx/content_timeline.cc +++ b/src/wx/content_timeline.cc @@ -67,11 +67,10 @@ using namespace boost::placeholders; int const ContentTimeline::_minimum_pixels_per_track = 16; -ContentTimeline::ContentTimeline(wxWindow* parent, ContentPanel* cp, shared_ptr<Film> film, FilmViewer& viewer) +ContentTimeline::ContentTimeline(wxWindow* parent, shared_ptr<Film> film, FilmViewer& viewer) : Timeline(parent) , _labels_canvas(new wxScrolledCanvas(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE)) , _main_canvas(new wxScrolledCanvas(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE)) - , _content_panel(cp) , _film(film) , _viewer(viewer) , _time_axis_view(new TimelineTimeAxisView(*this, 64)) @@ -651,7 +650,6 @@ ContentTimeline::left_up_select(wxMouseEvent& ev) view.first->content()->set_change_signals_frequent(false); } - _content_panel->set_selection(selected_content()); /* Since we may have just set change signals back to `not-frequent', we have to make sure this position change is signalled, even if the position value has not changed since the last time it was set (with frequent=true). This is |
