diff options
Diffstat (limited to 'ui/base/x/x11_util.cc')
-rw-r--r-- | ui/base/x/x11_util.cc | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc index dc738b5..efe05af 100644 --- a/ui/base/x/x11_util.cc +++ b/ui/base/x/x11_util.cc @@ -1167,23 +1167,13 @@ bool GetOutputDeviceData(XID output, return true; } -std::vector<std::string> GetDisplayNames(const std::vector<XID>& output_ids) { - std::vector<std::string> names; - for (size_t i = 0; i < output_ids.size(); ++i) { - std::string display_name; - if (GetOutputDeviceData(output_ids[i], NULL, NULL, &display_name)) - names.push_back(display_name); - } - return names; -} - -std::vector<std::string> GetOutputNames(const std::vector<XID>& output_ids) { +std::vector<std::string> GetOutputNames(std::vector<XID> output_ids) { std::vector<std::string> names; Display* display = GetXDisplay(); Window root_window = DefaultRootWindow(display); XRRScreenResources* screen_resources = XRRGetScreenResources(display, root_window); - for (std::vector<XID>::const_iterator iter = output_ids.begin(); + for (std::vector<XID>::iterator iter = output_ids.begin(); iter != output_ids.end(); ++iter) { XRROutputInfo* output = XRRGetOutputInfo(display, screen_resources, *iter); |