discomfitor pushed a commit to branch master.

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

commit e383b5b55af206183bb0c16e3be3a52573a1502b
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Apr 22 17:01:53 2015 -0400

    always register E_EVENT_RANDR_CHANGE
    
    failing to register this will cause event handlers for it to fail
    on creation
---
 src/bin/e_randr2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_randr2.c b/src/bin/e_randr2.c
index 4b16194..e25d30f 100644
--- a/src/bin/e_randr2.c
+++ b/src/bin/e_randr2.c
@@ -44,6 +44,7 @@ EAPI int              E_EVENT_RANDR_CHANGE = 0;
 EINTERN Eina_Bool
 e_randr2_init(void)
 {
+   if (!E_EVENT_RANDR_CHANGE) E_EVENT_RANDR_CHANGE = ecore_event_type_new();
    if (!e_comp_x_randr_available()) return EINA_FALSE;
    // create data descriptors for config storage
    _e_randr2_cfg_screen_edd =
@@ -74,7 +75,6 @@ e_randr2_init(void)
    E_CONFIG_VAL(D, T, ignore_hotplug_events, UCHAR);
    E_CONFIG_VAL(D, T, ignore_acpi_events, UCHAR);
 
-   if (!E_EVENT_RANDR_CHANGE) E_EVENT_RANDR_CHANGE = ecore_event_type_new();
    // set up events from the driver
    e_comp_x_randr_init();
    // get current screen info

-- 


Reply via email to