From 11e21fd1ffadc8c5172ed5c91ca4ac2d4b2ba258 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Wed, 5 Mar 2014 12:05:01 +0100 Subject: [PATCH] randr: allocate hot-plugged crtcs --- src/bin/e_randr.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/bin/e_randr.c b/src/bin/e_randr.c index 49a84d7..280bed5 100644 --- a/src/bin/e_randr.c +++ b/src/bin/e_randr.c @@ -569,7 +569,16 @@ _e_randr_event_cb_crtc_change(void *data EINA_UNUSED, int type EINA_UNUSED, void if (!crtc) { - fprintf(stderr, "E_RANDR: Weird, a new crtc?\n"); + crtc = E_NEW(E_Randr_Crtc, 1); + if (crtc) + { + e_randr->crtcs = eina_list_append(e_randr->crtcs, crtc); + crtc->xid = ev->crtc; + + crtc->geo = ev->geo; + crtc->mode = ev->mode; + crtc->orient = ev->orientation; + } } else { -- 2.7.4