summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-28 12:07:49 +0100
committerDave Airlie <airlied@redhat.com>2012-06-28 12:07:49 +0100
commit1253bcf79cafd6dd61f211db604bf669f7b98196 (patch)
tree57d549782141bdb249a4a5a919539cc83c6dace1
parent29442541438f1fd8e5f995e6a4c885715b762e23 (diff)
pass screen resources
-rw-r--r--xrandr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xrandr.c b/xrandr.c
index 989390c..c62e453 100644
--- a/xrandr.c
+++ b/xrandr.c
@@ -3254,7 +3254,7 @@ main (int argc, char **argv)
printf("Providers: number : %d %d\n", providers->nproviders, providers->flags);
for (j = 0; j < providers->nproviders; j++) {
- XRRProviderInfo *info = XRRGetProviderInfo(dpy, providers->providers[j]);
+ XRRProviderInfo *info = XRRGetProviderInfo(dpy, res, providers->providers[j]);
printf("Provider %d: %d %x %x %d %d %d %s\n", j, (int)providers->providers[j], info->current_role, info->allowed_roles, info->abilities, info->ncrtcs, info->noutputs, info->name);
XRRFreeProviderInfo(info);
}