This is an automated email from the git hooks/post-receive script.
git pushed a commit to reference refs/pull/124/head
in repository efl.
View the commit online.
commit 3a06d3d0186175139ab2a01c940a59e1b14a9599
Author: Swagtoy <[email protected]>
AuthorDate: Thu May 14 02:44:56 2026 -0400
ecore_evas_sdl: Hide and show window funcs
Signed-off-by: Swagtoy <[email protected]>
---
.../ecore_evas/engines/sdl/ecore_evas_sdl.c | 23 +++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)
diff --git a/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c b/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
index b8c6b13cf9..9ec169b359 100644
--- a/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
+++ b/src/modules/ecore_evas/engines/sdl/ecore_evas_sdl.c
@@ -50,6 +50,7 @@ static int _ecore_evas_init_count = 0;
static Ecore_Event_Handler *ecore_evas_event_handlers[6] = { NULL };
+// XXX: this needs to go
static Ecore_Poller *ecore_evas_event;
static Ecore_Evas *
@@ -255,18 +256,34 @@ _ecore_evas_move_resize(Ecore_Evas *ee, int x, int y, int w, int h)
static void
_ecore_evas_show(Ecore_Evas *ee)
{
+ Ecore_Evas_SDL_Data *edata = ee->engine.data;
+#if 0 // TODO: From the old old SDL code. What for? Hack?
ee->prop.withdrawn = EINA_FALSE;
if (ee->func.fn_state_change) ee->func.fn_state_change(ee);
+#endif
+ SDL_ShowWindow(edata->w);
+ if (ee->func.fn_show) ee->func.fn_show(ee);
+#if 0 // TODO: From the old old SDL code. What for? Hack?
if (ecore_evas_focus_device_get(ee, NULL)) return;
_ecore_evas_focus_device_set(ee, NULL, EINA_TRUE);
evas_event_feed_mouse_in(ee->evas, (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff), NULL);
+#endif
}
+
+static void
+_ecore_evas_hide(Ecore_Evas *ee)
+{
+ Ecore_Evas_SDL_Data *edata = ee->engine.data;
+ SDL_HideWindow(edata->w);
+ if (ee->func.fn_hide) ee->func.fn_hide(ee);
+}
+
static void
_ecore_evas_title_set(Ecore_Evas *ee, const char *t)
-{ printf("%s %s\n", __FUNCTION__, t);
+{
Ecore_Evas_SDL_Data *edata = ee->engine.data;
- EINA_SAFETY_ON_FALSE_RETURN(t);
+ EINA_SAFETY_ON_NULL_RETURN(t);
SDL_SetWindowTitle(edata->w, t);
}
@@ -295,7 +312,7 @@ static Ecore_Evas_Engine_Func _ecore_sdl_engine_func =
.fn_rotation_set = NULL,
.fn_shaped_set = NULL,
.fn_show = _ecore_evas_show,
- .fn_hide = NULL,
+ .fn_hide = _ecore_evas_hide,
.fn_raise = NULL,
.fn_lower = NULL,
.fn_activate = NULL,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.