mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 22:25:46 +01:00
drop WIN_POS_MOUSE on a managed window if we have stored coordinates and after the first present() call
This commit is contained in:
parent
128b374954
commit
81f86b11d1
1 changed files with 8 additions and 0 deletions
|
|
@ -278,6 +278,11 @@ WindowManager::ProxyBase::setup ()
|
|||
|
||||
vistracker = new Gtkmm2ext::VisibilityTracker (*_window);
|
||||
|
||||
if (_width != -1 || _height != -1 || _x_off != -1 || _y_off != -1) {
|
||||
/* cancel any mouse-based positioning */
|
||||
_window->set_position (Gtk::WIN_POS_NONE);
|
||||
}
|
||||
|
||||
if (_width != -1 && _height != -1) {
|
||||
_window->set_default_size (_width, _height);
|
||||
}
|
||||
|
|
@ -316,6 +321,9 @@ WindowManager::ProxyBase::present ()
|
|||
Gtk::Window* win = get (true);
|
||||
win->show_all ();
|
||||
win->present ();
|
||||
|
||||
/* turn off any mouse-based positioning */
|
||||
_window->set_position (Gtk::WIN_POS_NONE);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue