Commit fa383523 authored by Uri Lublin's avatar Uri Lublin Committed by Frediano Ziglio

xrandr-display-info: skip disconnected outputs

Signed-off-by: Uri Lublin's avatarUri Lublin <uril@redhat.com>
Acked-by: Snir Sheriber's avatarSnir Sheriber <ssheribe@redhat.com>
parent 8fc0e526
......@@ -198,7 +198,10 @@ std::vector<std::string> get_xrandr_outputs(Display *display, Window window)
screen_resources,
screen_resources->outputs[i]);
result.emplace_back(output_info->name);
/* only add connected outputs */
if (output_info->connection == RR_Connected) {
result.emplace_back(output_info->name);
}
XRRFreeOutputInfo(output_info);
}
......
Markdown is supported
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