mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
kludgy hack/fix for plugin windows reappearing at (0,0) after re-activating ardour as app on OS X. having spent an entire day investigating the issue, this seems like an expedient though sad fix
git-svn-id: svn://localhost/ardour2/branches/3.0@12573 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
9a0b1cce07
commit
e5bb4c94ed
2 changed files with 15 additions and 0 deletions
|
|
@ -89,6 +89,11 @@ PluginUIWindow::PluginUIWindow (
|
||||||
: parent (win)
|
: parent (win)
|
||||||
, was_visible (false)
|
, was_visible (false)
|
||||||
, _keyboard_focused (false)
|
, _keyboard_focused (false)
|
||||||
|
#ifdef AUDIOUNIT_SUPPORT
|
||||||
|
, pre_deactivate_x (-1)
|
||||||
|
, pre_deactivate_y (-1)
|
||||||
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
bool have_gui = false;
|
bool have_gui = false;
|
||||||
|
|
||||||
|
|
@ -341,11 +346,15 @@ PluginUIWindow::app_activated (bool)
|
||||||
if (yn) {
|
if (yn) {
|
||||||
if (was_visible) {
|
if (was_visible) {
|
||||||
_pluginui->activate ();
|
_pluginui->activate ();
|
||||||
|
if (pre_deactivate_x >= 0) {
|
||||||
|
move (pre_deactivate_x, pre_deactivate_y);
|
||||||
|
}
|
||||||
present ();
|
present ();
|
||||||
was_visible = true;
|
was_visible = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
was_visible = is_visible();
|
was_visible = is_visible();
|
||||||
|
get_position (pre_deactivate_x, pre_deactivate_y);
|
||||||
hide ();
|
hide ();
|
||||||
_pluginui->deactivate ();
|
_pluginui->deactivate ();
|
||||||
}
|
}
|
||||||
|
|
@ -783,3 +792,4 @@ PlugUIBase::preset_added_or_removed ()
|
||||||
update_preset_list ();
|
update_preset_list ();
|
||||||
update_preset ();
|
update_preset ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -312,6 +312,11 @@ class PluginUIWindow : public Gtk::Window
|
||||||
Gtk::VBox vbox;
|
Gtk::VBox vbox;
|
||||||
bool was_visible;
|
bool was_visible;
|
||||||
bool _keyboard_focused;
|
bool _keyboard_focused;
|
||||||
|
#ifdef AUDIOUNIT_SUPPORT
|
||||||
|
int pre_deactivate_x;
|
||||||
|
int pre_deactivate_y;
|
||||||
|
#endif
|
||||||
|
|
||||||
void keyboard_focused (bool yn);
|
void keyboard_focused (bool yn);
|
||||||
|
|
||||||
void app_activated (bool);
|
void app_activated (bool);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue