mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
provide GUI option to control WM visibility info use
This commit is contained in:
parent
73f3abedea
commit
3e089ee678
3 changed files with 11 additions and 0 deletions
|
|
@ -431,6 +431,8 @@ ARDOUR_UI::parameter_changed (std::string p)
|
||||||
} else if (p == "waveform-cache-size") {
|
} else if (p == "waveform-cache-size") {
|
||||||
/* GUI option has units of megabytes; image cache uses units of bytes */
|
/* GUI option has units of megabytes; image cache uses units of bytes */
|
||||||
ArdourCanvas::WaveView::set_image_cache_size (UIConfiguration::instance().get_waveform_cache_size() * 1048576);
|
ArdourCanvas::WaveView::set_image_cache_size (UIConfiguration::instance().get_waveform_cache_size() * 1048576);
|
||||||
|
} else if (p == "use-wm-visibility") {
|
||||||
|
VisibilityTracker::set_use_window_manager_visibility (UIConfiguration::instance().get_use_wm_visibility());
|
||||||
} else if (p == "action-table-columns") {
|
} else if (p == "action-table-columns") {
|
||||||
const uint32_t cols = UIConfiguration::instance().get_action_table_columns ();
|
const uint32_t cols = UIConfiguration::instance().get_action_table_columns ();
|
||||||
for (int i = 0; i < 9; ++i) {
|
for (int i = 0; i < 9; ++i) {
|
||||||
|
|
|
||||||
|
|
@ -3044,6 +3044,14 @@ if (!ARDOUR::Profile->get_mixbus()) {
|
||||||
add_option (S_("Preferences|GUI"), bgo);
|
add_option (S_("Preferences|GUI"), bgo);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
add_option (S_("Preferences|GUI"),
|
||||||
|
new BoolOption (
|
||||||
|
"use-wm-visibility",
|
||||||
|
_("Use Window Manager/Desktop visibility information"),
|
||||||
|
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_use_wm_visibility),
|
||||||
|
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_use_wm_visibility)
|
||||||
|
));
|
||||||
|
|
||||||
add_option (S_("Preferences|GUI"),
|
add_option (S_("Preferences|GUI"),
|
||||||
new BoolOption (
|
new BoolOption (
|
||||||
"widget-prelight",
|
"widget-prelight",
|
||||||
|
|
|
||||||
|
|
@ -83,3 +83,4 @@ UI_CONFIG_VARIABLE (bool, open_gui_after_adding_plugin, "open-gui-after-adding-p
|
||||||
UI_CONFIG_VARIABLE (bool, show_inline_display_by_default, "show-inline-display-by-default", true)
|
UI_CONFIG_VARIABLE (bool, show_inline_display_by_default, "show-inline-display-by-default", true)
|
||||||
UI_CONFIG_VARIABLE (bool, prefer_inline_over_gui, "prefer-inline-over-gui", true)
|
UI_CONFIG_VARIABLE (bool, prefer_inline_over_gui, "prefer-inline-over-gui", true)
|
||||||
UI_CONFIG_VARIABLE (uint32_t, action_table_columns, "action-table-columns", 0)
|
UI_CONFIG_VARIABLE (uint32_t, action_table_columns, "action-table-columns", 0)
|
||||||
|
UI_CONFIG_VARIABLE (bool, use_wm_visibility, "use-wm-visibility", true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue