projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9144cbe
)
Properly remember window position.
author
Robin Gareus
<robin@gareus.org>
Wed, 1 Feb 2017 22:05:49 +0000
(23:05 +0100)
committer
Robin Gareus
<robin@gareus.org>
Wed, 1 Feb 2017 22:07:57 +0000
(23:07 +0100)
Querying the position of unmapped windows may or may not return a valid
position. -- the configure handler is also called after hiding a window.
libs/gtkmm2ext/window_proxy.cc
patch
|
blob
|
history
diff --git
a/libs/gtkmm2ext/window_proxy.cc
b/libs/gtkmm2ext/window_proxy.cc
index 1f2fa54112d55b097c325af8fbedbbdfde98d0d8..19917bd99ab01cd79c12205b3d2f879034399175 100644
(file)
--- a/
libs/gtkmm2ext/window_proxy.cc
+++ b/
libs/gtkmm2ext/window_proxy.cc
@@
-286,6
+286,9
@@
WindowProxy::configure_handler (GdkEventConfigure* ev)
the difference is generally down to window manager framing.
*/
+ if (!visible() || !_window->is_mapped()) {
+ return false;
+ }
save_pos_and_size ();
return false;
}