Browse Source

Timeline: Fix rare issue where moving the mouse over a region while recording at just the right moment could cause a spurious SET action to be written to the history.

tags/non-daw-v1.3.0
Jonathan Moore Liles 2 years ago
parent
commit
826bea3c30
4 changed files with 17 additions and 1 deletions
  1. +4
    -0
      timeline/src/Audio_Region.C
  2. +5
    -0
      timeline/src/Sequence_Region.C
  3. +4
    -0
      timeline/src/Sequence_Widget.C
  4. +4
    -1
      timeline/src/Track.C

+ 4
- 0
timeline/src/Audio_Region.C View File

@@ -822,6 +822,10 @@ Audio_Region::handle ( int m )
static bool copied = false;
static nframes_t os;

if ( !active_r() )
/* don't mess with anything while recording... */
return 0;
int X = Fl::event_x();
int Y = Fl::event_y();


+ 5
- 0
timeline/src/Sequence_Region.C View File

@@ -19,6 +19,7 @@

#include "Sequence_Region.H"
#include "Track.H"
#include "debug.h"

#include <stdint.h>

@@ -142,6 +143,10 @@ Sequence_Region::handle ( int m )
int X = Fl::event_x();
int Y = Fl::event_y();

if ( !active_r() )
/* don't mess with anything while recording... */
return 0;
Logger _log( this );

switch ( m )


+ 4
- 0
timeline/src/Sequence_Widget.C View File

@@ -391,6 +391,10 @@ Sequence_Widget::handle ( int m )
int X = Fl::event_x();
int Y = Fl::event_y();

if ( !active_r() )
/* don't mess with anything while recording... */
return 0;
Logger _log( this );

switch ( m )


+ 4
- 1
timeline/src/Track.C View File

@@ -1059,7 +1059,10 @@ Track::draw ( void )
int
Track::handle ( int m )
{

if ( !active_r() )
/* don't mess with anything while recording... */
return 0;
/* if ( m != FL_NO_EVENT ) */
/* DMESSAGE( "%s", event_name( m ) ); */
static Fl_Widget *dragging = NULL;


Loading…
Cancel
Save