sebas created this revision. sebas added a reviewer: dvratil. sebas added a subscriber: Plasma. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY When enabling outputs, it's possible that a KScreen::Output's current mode is empty. In this case, it's logical and necessary to fall back to the output's preferred mode, instead of passing essentially QString().toInt() as mode id into xcb_randr_set_crtc_config(). In the current code, kscreenOuput->currentMode()->size() can crash, this is fixed with this patch as well. This change makes enabling a VGA monitor to my docking station more reliable. TEST PLAN Connected, disconnted, reconfigured a tv connected via HDMI. REPOSITORY rLIBKSCREEN KScreen Library BRANCH sebas/modefallback REVISION DETAIL https://phabricator.kde.org/D2330 AFFECTED FILES backends/xrandr/xrandrconfig.cpp EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: sebas, dvratil Cc: plasma-devel, #plasma, ali-mohamed, jensreuterberg, abetts, sebas
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel