desensitize playhead by default, and make a new config variable 'sensitize-playhead'

Historically, it was possible to grab the 1-pix-wide red line, and drag the playhead
In rare but annoying cases, the red playhead interferes with mouse clicks, because it is on top
De-sensitize the playhead by default, and provide a new config var for those who want the old operation
This commit is contained in:
Ben Loftis 2023-05-01 07:59:04 -05:00
parent a7c4ab3247
commit dd08d12475
3 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@
<Option name="color-regions-using-track-color" value="0"/>
<Option name="show-waveform-clipping" value="1"/>
<Option name="lock-gui-after-seconds" value="0"/>
<Option name="draggable-playhead" value="1"/>
<Option name="sensitize-playhead" value="0"/>
<Option name="no-new-session-dialog" value="1"/>
<Option name="show-track-meters" value="1"/>
<Option name="default-narrow_ms" value="0"/>

View File

@ -6763,9 +6763,9 @@ Editor::ui_parameter_changed (string parameter)
edit_pane.set_drag_cursor (*_cursors->expand_left_right);
editor_summary_pane.set_drag_cursor (*_cursors->expand_up_down);
} else if (parameter == "draggable-playhead") {
if (_verbose_cursor) {
_playhead_cursor->set_sensitive (UIConfiguration::instance().get_draggable_playhead());
} else if (parameter == "sensitize-playhead") {
if (_playhead_cursor) {
_playhead_cursor->set_sensitive (UIConfiguration::instance().get_sensitize_playhead());
}
} else if (parameter == "use-note-bars-for-velocity") {
ArdourCanvas::Note::set_show_velocity_bars (UIConfiguration::instance().get_use_note_bars_for_velocity());

View File

@ -39,7 +39,7 @@ UI_CONFIG_VARIABLE (bool, editor_stereo_only_meters, "editor-stereo-only-meters"
UI_CONFIG_VARIABLE (bool, show_waveform_clipping, "show-waveform-clipping", true)
UI_CONFIG_VARIABLE (uint32_t, lock_gui_after_seconds, "lock-gui-after-seconds", 0)
UI_CONFIG_VARIABLE (ARDOUR::ScreenSaverMode, screen_saver_mode, "screen-saver-mode", InhibitWhileRecording)
UI_CONFIG_VARIABLE (bool, draggable_playhead, "draggable-playhead", true)
UI_CONFIG_VARIABLE (bool, sensitize_playhead, "sensitize-playhead", false)
UI_CONFIG_VARIABLE (float, draggable_playhead_speed, "draggable-playhead-speed", 0.5)
UI_CONFIG_VARIABLE (float, extra_ui_extents_time, "extra-ui-extents-time", 1.0)
UI_CONFIG_VARIABLE (bool, new_automation_points_on_lane, "new-automation-points-on-lane", false)