summaryrefslogtreecommitdiff
path: root/src/lib/ecore_win32
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2020-10-13 15:19:26 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-10-13 15:19:26 +0100
commitb9df223fa2fb0c0293b3b28363030965e5acb9ff (patch)
treeed2b9fdce4ec6d58254ee90618ffdd5001a7c82d /src/lib/ecore_win32
parentd5f728bd72ef55bdbb45370424dd987dd1ae57b6 (diff)
Ecore_Evas win32: fix activate() function
Summary: activating the function needs un-iconified first Test Plan: elm windows status tests Reviewers: raster, jptiz, felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12176
Diffstat (limited to 'src/lib/ecore_win32')
-rw-r--r--src/lib/ecore_win32/Ecore_Win32.h2
-rw-r--r--src/lib/ecore_win32/ecore_win32_window.c23
2 files changed, 25 insertions, 0 deletions
diff --git a/src/lib/ecore_win32/Ecore_Win32.h b/src/lib/ecore_win32/Ecore_Win32.h
index b83f8dae54..fa5b80eb48 100644
--- a/src/lib/ecore_win32/Ecore_Win32.h
+++ b/src/lib/ecore_win32/Ecore_Win32.h
@@ -611,6 +611,8 @@ EAPI void ecore_win32_window_raise(Ecore_Win32_Window *window);
611 611
612EAPI void ecore_win32_window_lower(Ecore_Win32_Window *window); 612EAPI void ecore_win32_window_lower(Ecore_Win32_Window *window);
613 613
614EAPI void ecore_win32_window_activate(Ecore_Win32_Window *window);
615
614EAPI void ecore_win32_window_title_set(Ecore_Win32_Window *window, 616EAPI void ecore_win32_window_title_set(Ecore_Win32_Window *window,
615 const char *title); 617 const char *title);
616 618
diff --git a/src/lib/ecore_win32/ecore_win32_window.c b/src/lib/ecore_win32/ecore_win32_window.c
index 628264d7b3..2199d4a6df 100644
--- a/src/lib/ecore_win32/ecore_win32_window.c
+++ b/src/lib/ecore_win32/ecore_win32_window.c
@@ -1155,6 +1155,29 @@ ecore_win32_window_lower(Ecore_Win32_Window *window)
1155} 1155}
1156 1156
1157/** 1157/**
1158 * @brief Activate the given window.
1159 *
1160 * @param window The window to activate.
1161 *
1162 * This functions activates the windows @p window. If @p window
1163 * is @c NULL, this function does nothing. Otherwise, the window is
1164 * activated. So if is minimized or maximized, the window is restored
1165 * to its original position and size.
1166 *
1167 *@since 1.26
1168 */
1169EAPI void
1170ecore_win32_window_activate(Ecore_Win32_Window *window)
1171{
1172 if (!window) return;
1173
1174 INF("activate window");
1175
1176 ShowWindow(window->window, SW_RESTORE);
1177 window->iconified = EINA_FALSE;
1178}
1179
1180/**
1158 * @brief Set the title of the given window. 1181 * @brief Set the title of the given window.
1159 * 1182 *
1160 * @param window The window to set the title. 1183 * @param window The window to set the title.