When resizing a virtual machine, the current mode may become invalid.
In this case, we set the current mode id to the preferred modes and
avoid failing canBeApplied.
CCBUG:356864
graesslin |
Plasma |
When resizing a virtual machine, the current mode may become invalid.
In this case, we set the current mode id to the preferred modes and
avoid failing canBeApplied.
CCBUG:356864
Only compile-tested
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
I just pulled the change in my VM and it seems to not work yet.
kscreen: Requesting missing EDID for outputs (67) kscreen.kded: Change detected kscreen.kded: Current mode invalid, fixing up mode id kscreen.kded: Current mode invalid, fixing up mode id kscreen.kded: Current mode invalid, fixing up mode id kscreen.kded: Current mode invalid, fixing up mode id kscreen.kded: Saving current config to file kscreen.kded: Calculating config ID for KScreen::Config(0x2217ee0) kscreen.kded: Part of the Id: "Virtual-0" kscreen.kded: Config ID: "36f8d068f39d26df82751b9d028c4786" kscreen.kded: Config saved on: "/home/martin/.local/share/kscreen/36f8d068f39d26df82751b9d028c4786"
Though this is on top with my changes to libkscreen. Will revert those and test again.
To make it work, we'll also need https://phabricator.kde.org/D3117
I haven't tested it, though.
Requesting review, as this patch is correct with the dynamic modelist changes. I'd like it in.
I've screwed up a rebase and accidentally pushed this patch as https://phabricator.kde.org/D3333 . I'll abandon this review, but the change was really pushed.
Sorry for the noise and possible confusion.