]> git.mdlowis.com Git - proto/labwc.git/commit
wlr-foreign: set all initial states correctly
authorJohn Lindgren <john@jlindgren.net>
Tue, 18 Nov 2025 03:53:53 +0000 (22:53 -0500)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 18 Nov 2025 06:06:07 +0000 (07:06 +0100)
commit20087e89b2718e51f770078237622b812fc146ba
treef8552d9b244f9d25a96096a03c90d93c65314b59
parent077a5c970afe15d80d156deb6ec3d517077714fd
wlr-foreign: set all initial states correctly

Two were missing: "minimized" and "activated".

At least "minimized" can be set before map, so the initial state needs
to be read and set on the foreign-toplevel.

I think in the current code, the foreign-toplevel is always created
before a view is activated, but for future-proofing, let's not rely
on this, and set "activated" as well. There's no harm since wlroots
optimizes away any redundant state changes.
src/foreign-toplevel/wlr-foreign.c