Merge pull request #101 from alphanu1/alphanu1-patch-90

Fix restore resolution for auto detect with single output
This commit is contained in:
alphanu1 2019-02-01 20:30:58 +00:00 committed by GitHub
commit a719a096f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,6 +274,8 @@ static bool x11_display_server_set_resolution(void *data,
{
XRROutputInfo *outputs = XRRGetOutputInfo (dsp, res, res->outputs[i]);
if (res->noutput < 2)
snprintf(orig_output, sizeof(orig_output),"%s", outputs->name);
if (outputs->connection == RR_Connected)
{