summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/virtual.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index 6fa1c998..b891fd00 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -2115,7 +2115,8 @@ static int last_display_add_clones__randr(struct context *ctx)
display_init_randr_hpd(display);
- res = _XRRGetScreenResourcesCurrent(display->dpy, display->root);
+ /* Force a probe of outputs on initial connection */
+ res = XRRGetScreenResources(display->dpy, display->root);
if (res == NULL)
return -ENOMEM;