projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
128b374
)
drop WIN_POS_MOUSE on a managed window if we have stored coordinates and after the...
author
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 6 May 2013 16:13:43 +0000
(12:13 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 6 May 2013 16:13:43 +0000
(12:13 -0400)
gtk2_ardour/window_manager.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/window_manager.cc
b/gtk2_ardour/window_manager.cc
index f50fe444a8337123c612947c535183ad41ad8faf..cb63f4f822cf855bb8e220089031f8b58ef6bcf6 100644
(file)
--- a/
gtk2_ardour/window_manager.cc
+++ b/
gtk2_ardour/window_manager.cc
@@
-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