wayland: parse toplevel states before geometry_configured check
Fix toplevel state being lost before geometry_configured is configured. Previously, for a KWin rule that set fullscreen (apply initially or forced) when a --geometry was also specified, mpv would render at --geometry size even though the compositor was treating it as fullscreen. This resulted in geometry-sized content anchored to the top-right without a titlebar. This mismatch of what mpv thinks and what actually is can also be seen similarly with a KWin rule that sets a maximize state. With this change, mpv starts in fullscreen _proper_ (ie --fullscreen). Exiting fullscreen then results in a window size as specified by the --geometry. For the other states this handles, I'm honestly not sure as I wasn't able to force them. It _should_ be fine based on what I see here and _logically_ is correct as mpv's state should always match what the compositor informs it to be.
A
Andrew Rabert committed
45324ce682cc2668e760849441e337798277b769
Parent: e046cd0
Committed by Dudemanguy <random342@airmail.cc>
on 4/25/2026, 4:47:32 AM