From: Sebastian Dransfeld Date: Wed, 5 Mar 2014 11:05:01 +0000 (+0100) Subject: randr: allocate hot-plugged crtcs X-Git-Tag: upstream/0.19.99~1417 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11e21fd1ffadc8c5172ed5c91ca4ac2d4b2ba258;p=platform%2Fupstream%2Fenlightenment.git randr: allocate hot-plugged crtcs --- 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 {