Properly remember window position.
authorRobin Gareus <robin@gareus.org>
Wed, 1 Feb 2017 22:05:49 +0000 (23:05 +0100)
committerRobin 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

index 1f2fa54112d55b097c325af8fbedbbdfde98d0d8..19917bd99ab01cd79c12205b3d2f879034399175 100644 (file)
@@ -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;
 }