discomfitor pushed a commit to branch enlightenment-0.19.

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

commit 510660e1577e53a8cb194aa986bfee43ee03f642
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Jul 24 13:00:16 2015 -0400

    use runtime check for determining x11 compositor grab behavior
    
    this should fix the case of users not recompiling enlightenment after
    upgrading their efl version
---
 src/bin/e_comp_x.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index e3a33d4..174dea7 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -139,9 +139,8 @@ _e_comp_x_print_win(Ecore_X_Window win)
 static void
 _e_comp_x_focus_grab(E_Client *ec)
 {
-#if EFL_VERSION_MAJOR > 1 || EFL_VERSION_MINOR > 14
-   if (ec->internal_ecore_evas) return;
-#endif
+   if ((ecore_version->major > 1) || (ecore_version->minor > 14))
+     if (ec->internal_ecore_evas) return;
    ecore_x_window_button_grab(e_client_util_win_get(ec), 1,
                               ECORE_X_EVENT_MASK_MOUSE_DOWN |
                               ECORE_X_EVENT_MASK_MOUSE_UP |

-- 


Reply via email to