Add a default mode in QWaylandQuickOutput


The QWaylandQuickOutput does not have any way for the users
to add modes to the output. It therefore depends on detecting
a default mode, otherwise the client will get 0x0 for the size
of the screen.

Setting sizeFollowsWindow to true fixes this, but the default
value is false, and this property also causes any changes to
the window size to be reported. This means that by default,
compositors will not report any valid size of outputs. To
fix this, we add a default output. If sizeFollowsWindow this
will be overwritten in QWaylandOutput::initialize() and
follow the regular code paths.

Fixes: QTBUG-137154
Change-Id: I388245b729b5aafd16f43f7408914084771864ce
Reviewed-by: Inho Lee <inho.lee@qt.io>
commit2f7941fdc21a84866a4a1e228d783bf0c61c903a
parentfb6dcb8fc71e440b114a17fc246aa98e186efc63
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit timeTue, 24 Mar 2026 11:45:36 +0000