Skip to content

Stabilize screen order via sorting

Jannick Kremer requested to merge nightoo/yakuake:fix-order into master

Screen order obtained via QGuiApplication::screens() is not stable, it may change on reboot. The "Open on screen" setting of Yakuake uses the order of screens returned by that function to determine the screen to open Yakuake on, which means it may switch screens when rebooting. I have also reported this as a bug upstream: https://bugreports.qt.io/browse/QTBUG-128236

This change circumvents the issue by sorting the list of screens by their name attribute.

BUG: 374504

Edited by Jannick Kremer

Merge request reports

Loading