devilhorns pushed a commit to branch master.

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

commit c82f6e81d1c533844f8044bf172765b930dc0e73
Author: Christopher Michael <devilho...@comcast.net>
Date:   Mon Nov 9 21:28:32 2020 -0500

    wl_x11: Fix wrong return value on function that does not return bool....
    
    Read the API. Returns INT ...
    
    Also, you're already getting root so create randr canvas_new with that
    first.,.. then check that Root is 'managed'...
---
 src/modules/wl_x11/e_mod_main.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/modules/wl_x11/e_mod_main.c b/src/modules/wl_x11/e_mod_main.c
index d3e43c813..b21fc598e 100644
--- a/src/modules/wl_x11/e_mod_main.c
+++ b/src/modules/wl_x11/e_mod_main.c
@@ -10,7 +10,7 @@ e_modapi_init(E_Module *m)
 {
    int w = 0, h = 0;
    Ecore_X_Window root, win;
-   Eina_Bool managed;
+   int managed;
 
    printf("LOAD WL_X11 MODULE\n");
 
@@ -20,9 +20,15 @@ e_modapi_init(E_Module *m)
         return NULL;
      }
    root = ecore_x_window_root_first_get();
-   managed = !!ecore_x_window_prop_window_get(root, 
ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
-                                      &win, 1);
-   e_comp_x_randr_canvas_new(ecore_x_window_root_first_get(), 1, 1);
+
+   /* get root and setup canvas first */
+   e_comp_x_randr_canvas_new(root, 1, 1);
+
+   /* then check if it's 'managed' or not */
+   managed =
+     ecore_x_window_prop_window_get(root,
+                                    ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
+                                    &win, 1);
 
    if (!e_comp->ee)
      {

-- 


Reply via email to