englebass pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=9b4bace8311c96ba42677db387280068706f3144

commit 9b4bace8311c96ba42677db387280068706f3144
Author: Sebastian Dransfeld <[email protected]>
Date:   Wed Dec 17 10:35:12 2014 +0100

    randr: don't try to enable crtc with no outputs
---
 src/bin/e_randr.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/bin/e_randr.c b/src/bin/e_randr.c
index f99f63b..7a92759 100644
--- a/src/bin/e_randr.c
+++ b/src/bin/e_randr.c
@@ -598,6 +598,13 @@ _e_randr_apply(void)
         Ecore_X_Randr_Output *coutputs;
 
         printf("RRR2:   crtc: %x %i %i %ix%i rot: %i mode: %i\n", crtc->xid, 
crtc->geo.x, crtc->geo.y, crtc->geo.w, crtc->geo.h, crtc->orient, crtc->mode);
+        if (!crtc->outputs)
+          {
+             printf("RRR2:   no outputs - off\n");
+             ecore_x_randr_crtc_settings_set(root, crtc->xid, NULL, 0, 0, 0, 0,
+                                             ECORE_X_RANDR_ORIENTATION_ROT_0);
+             continue;
+          }
         /* set config from connected outputs */
         _e_randr_crtc_from_outputs_set(crtc);
 

-- 


Reply via email to