]> git.mdlowis.com Git - proto/labwc.git/commit
xdg: try to handle slow un-maximize with empty natural geometry better
authorJohn Lindgren <john@jlindgren.net>
Tue, 1 Oct 2024 14:16:29 +0000 (10:16 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 1 Oct 2024 20:22:00 +0000 (21:22 +0100)
commit452f45cd3d6695299d8014c271db094da11fad05
tree49a0cd778bea69367822813f1e42756af3e4dcd1
parent915d638f8a63cf9a67ec593ce2862aa38d0233b8
xdg: try to handle slow un-maximize with empty natural geometry better

In the case of an initially-maximized view which is taking a long time
to un-maximize (seen for example with Thunderbird on slow machines), we
may end up in handle_configure_timeout() with an empty pending geometry.
In that case we have no great options (we can't center the view since we
don't know the un-maximized size yet), so set a fallback position.

v2: check wlr_box_empty() before comparing pending and current

Fixes: #2191
include/view.h
src/view.c
src/xdg.c