summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_private.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-12-06 10:40:11 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-12-06 10:48:17 +0900
commitaac516f352b27684b1a1aad72cf82486a3bd81de (patch)
tree695ad133aebf69047db5155b1685fd4e3aa2b249 /src/lib/evas/include/evas_private.h
parent942321204cc54ab440db0c15668e9e3ea9d13921 (diff)
evas: Ensure single init of common per canvas
After @cedric's commit 6427c77707fb6116a98b we end up with E not working in Xephyr, because evas_common_shutdown() is called too many times (init_count == -1). So I'm being paranoid and tracking whether Evas has initialized or not evas_common. That way we end up with exactly the right number of inits. We even reach 0 after E shuts down :)
Diffstat (limited to 'src/lib/evas/include/evas_private.h')
-rw-r--r--src/lib/evas/include/evas_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/include/evas_private.h b/src/lib/evas/include/evas_private.h
index 765765503c..a334ed1bac 100644
--- a/src/lib/evas/include/evas_private.h
+++ b/src/lib/evas/include/evas_private.h
@@ -938,6 +938,7 @@ struct _Evas_Public_Data
938 Eina_Bool is_frozen : 1; 938 Eina_Bool is_frozen : 1;
939 Eina_Bool rendering : 1; 939 Eina_Bool rendering : 1;
940 Eina_Bool render2 : 1; 940 Eina_Bool render2 : 1;
941 Eina_Bool common_init : 1;
941}; 942};
942 943
943struct _Evas_Layer 944struct _Evas_Layer