13
0

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.
This commit is contained in:
Robin Gareus 2017-02-01 23:05:49 +01:00
parent 9144cbe93a
commit ddd0e862ce

View 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;
}