]> git.mdlowis.com Git - proto/labwc.git/commit
xdg: fix error when launching windowed Chromium
authortokyo4j <hrak1529@gmail.com>
Sun, 21 Jul 2024 08:09:17 +0000 (17:09 +0900)
committerJohn Lindgren <john@jlindgren.net>
Sun, 11 Aug 2024 20:48:40 +0000 (16:48 -0400)
commit6687640665a7959ac0c153b1c23049c7bd10b7aa
tree08a6442d8fdefa3a7559c45c8008b4e86aa7cf74
parentde38c771fc4d0a9c5073e40719751b0badc6a60f
xdg: fix error when launching windowed Chromium

Chromium sends 2 commits before the commit with a buffer attached. We
were just checking `wlr_box_empty(&view->pending)` to handle the cases
where an initially maximized/fullscreen client is windowed, but that
check was also returning true on the 2nd commit from Chromium, resulting
in an error message: "view has empty geometry, not centering".
src/xdg.c