Skip to content
Commit aef3eb64 authored by Marco Martin's avatar Marco Martin
Browse files

Adapt to QScreen logic change on Qt6

In Qt6 the behavior of qscreen changed a bit when the last output is disconnected and how the fake outputs are managed, and differs a bit between X11 and Wayland.

On X11 when disconencting the last screen, nothing happens, except the single QScreen quietly changes its name to ":0.0" with no signals, so we can't detect it became "fake"

On Wayland, on disconnect, a new fake qscreen gets added and the last real one gets removed


on reconnection, the sequence of events is the same between X11 and Wayland, a new real QScreen is added and the fake one is removed


Adapt the checks and asserts to reflect this behavior
parent 4529010f
Pipeline #549666 passed with stage
in 16 minutes and 49 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment