discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=4b40ad10e5f31556d9ac233fb41c51141720ac6e

commit 4b40ad10e5f31556d9ac233fb41c51141720ac6e
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Oct 1 13:13:08 2015 -0400

    always apply all randr changes after a screen event
    
    fixes case where plugging an external monitor would cause the screen
    to expand onto that display without the display being effectively usable
    until after a restart
---
 src/bin/e_randr2.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/bin/e_randr2.c b/src/bin/e_randr2.c
index 789e388..9d1d604 100644
--- a/src/bin/e_randr2.c
+++ b/src/bin/e_randr2.c
@@ -598,13 +598,9 @@ _cb_screen_change_delay(void *data EINA_UNUSED)
      }
    // update screen info after the above apply or due to external changes
    e_randr2_screeninfo_update();
-   if ((e_comp->w != e_randr2->w) || (e_comp->h != e_randr2->h))
-     e_comp_canvas_resize(e_randr2->w, e_randr2->h);
-   else
-     {
-        e_randr2_screens_setup(e_comp->w, e_comp->h);
-        e_comp_canvas_update();
-     }
+   e_comp_canvas_resize(e_randr2->w, e_randr2->h);
+   e_randr2_screens_setup(e_comp->w, e_comp->h);
+   e_comp_canvas_update();
    // tell the rest of e some screen reconfigure thing happened
    ecore_event_add(E_EVENT_RANDR_CHANGE, NULL, NULL, NULL);
    event_screen = EINA_FALSE;

-- 


Reply via email to