From ddd0e862cee83bbbf8361f083c07ad2c037d693e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 1 Feb 2017 23:05:49 +0100 Subject: [PATCH] Properly remember window position. 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/gtkmm2ext/window_proxy.cc b/libs/gtkmm2ext/window_proxy.cc index 1f2fa54112..19917bd99a 100644 --- 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; }