summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <devilhorns@comcast.net>2020-11-09 21:28:32 -0500
committerChristopher Michael <devilhorns@comcast.net>2020-11-09 21:28:32 -0500
commitc82f6e81d1c533844f8044bf172765b930dc0e73 (patch)
tree97b6c2f0d65f8d1a5add7bb5062ba1854727646f
parentbf63b590e2810b8c9c07f47492d772ded7431f53 (diff)
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'...
-rw-r--r--src/modules/wl_x11/e_mod_main.c14
1 files 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)
10{ 10{
11 int w = 0, h = 0; 11 int w = 0, h = 0;
12 Ecore_X_Window root, win; 12 Ecore_X_Window root, win;
13 Eina_Bool managed; 13 int managed;
14 14
15 printf("LOAD WL_X11 MODULE\n"); 15 printf("LOAD WL_X11 MODULE\n");
16 16
@@ -20,9 +20,15 @@ e_modapi_init(E_Module *m)
20 return NULL; 20 return NULL;
21 } 21 }
22 root = ecore_x_window_root_first_get(); 22 root = ecore_x_window_root_first_get();
23 managed = !!ecore_x_window_prop_window_get(root, ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK, 23
24 &win, 1); 24 /* get root and setup canvas first */
25 e_comp_x_randr_canvas_new(ecore_x_window_root_first_get(), 1, 1); 25 e_comp_x_randr_canvas_new(root, 1, 1);
26
27 /* then check if it's 'managed' or not */
28 managed =
29 ecore_x_window_prop_window_get(root,
30 ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
31 &win, 1);
26 32
27 if (!e_comp->ee) 33 if (!e_comp->ee)
28 { 34 {