summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-25 12:46:35 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-28 22:20:34 +0100
commit30db122db48906d1bcf495b7dda199db23beb7d4 (patch)
treeef176b2a0ad037f3f2e899cd9073d93644357adb /src/lib/ecore_evas
parent8e1de8f3e2e9ccc5680b44d91685bcb08668d3dc (diff)
ecore_evas_buffer: register it in ecore_evas_input
this is done in order to make ecore_event_evas_key_down work with this. The function can be used to simulate interactions with a efl_ui_win. If this is not added, then the user of ecore_event_evas_key_down needs to differentiate between buffer engines and the rest of the engines. Differential Revision: https://phab.enlightenment.org/D7361
Diffstat (limited to 'src/lib/ecore_evas')
-rw-r--r--src/lib/ecore_evas/ecore_evas_buffer.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_buffer.c b/src/lib/ecore_evas/ecore_evas_buffer.c
index 2a33ea3b88..173f33289f 100644
--- a/src/lib/ecore_evas/ecore_evas_buffer.c
+++ b/src/lib/ecore_evas/ecore_evas_buffer.c
@@ -9,6 +9,7 @@
9#include <Ecore.h> 9#include <Ecore.h>
10#include "ecore_private.h" 10#include "ecore_private.h"
11#include <Ecore_Input.h> 11#include <Ecore_Input.h>
12#include <Ecore_Input_Evas.h>
12 13
13#include "Ecore_Evas.h" 14#include "Ecore_Evas.h"
14#include "ecore_evas_buffer.h" 15#include "ecore_evas_buffer.h"
@@ -35,6 +36,8 @@ _ecore_evas_buffer_free(Ecore_Evas *ee)
35 } 36 }
36 37
37 free(bdata); 38 free(bdata);
39
40 ecore_event_evas_shutdown();
38} 41}
39 42
40static void 43static void
@@ -885,8 +888,16 @@ ecore_evas_buffer_allocfunc_new(int w, int h,
885EAPI Ecore_Evas * 888EAPI Ecore_Evas *
886ecore_evas_buffer_new(int w, int h) 889ecore_evas_buffer_new(int w, int h)
887{ 890{
888 return ecore_evas_buffer_allocfunc_new 891 Ecore_Evas *ee;
892
893 ecore_event_evas_init();
894
895 ee = ecore_evas_buffer_allocfunc_new
889 (w, h, _ecore_evas_buffer_pix_alloc, _ecore_evas_buffer_pix_free, NULL); 896 (w, h, _ecore_evas_buffer_pix_alloc, _ecore_evas_buffer_pix_free, NULL);
897
898 ecore_evas_done(ee, EINA_TRUE);
899
900 return ee;
890} 901}
891 902
892EAPI const void * 903EAPI const void *