summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-02-12 14:42:05 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-04-20 13:00:27 -0500
commitfc973b96403b47353f1814765c028b5eb08d618a (patch)
tree564d281255c0149ae5ef693cdf7591fd57ad44e9 /src/lib/ecore_wl2
parent5af84afced98956198b9c316facb671e46b381c1 (diff)
ecore_wl2: Remove window_transparent_set
This is exactly the same as alpha_set, so it really doesn't have much reason to exist.
Diffstat (limited to 'src/lib/ecore_wl2')
-rw-r--r--src/lib/ecore_wl2/Ecore_Wl2.h12
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_private.h1
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c17
3 files changed, 0 insertions, 30 deletions
diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index e6f301abe3..b2024f0876 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -873,18 +873,6 @@ EAPI Eina_Bool ecore_wl2_window_alpha_get(Ecore_Wl2_Window *window);
873EAPI void ecore_wl2_window_alpha_set(Ecore_Wl2_Window *window, Eina_Bool alpha); 873EAPI void ecore_wl2_window_alpha_set(Ecore_Wl2_Window *window, Eina_Bool alpha);
874 874
875/** 875/**
876 * Set a given window's transparent property
877 *
878 * @param window The window on which to set the transparent property
879 * @param transparent EINA_TRUE to set window as transparent,
880 * EINA_FALSE otherwise
881 *
882 * @ingroup Ecore_Wl2_Window_Group
883 * @since 1.17
884 */
885EAPI void ecore_wl2_window_transparent_set(Ecore_Wl2_Window *window, Eina_Bool transparent);
886
887/**
888 * Set the opaque region of the Ecore_Wl2_Window 876 * Set the opaque region of the Ecore_Wl2_Window
889 * 877 *
890 * @param win The window 878 * @param win The window
diff --git a/src/lib/ecore_wl2/ecore_wl2_private.h b/src/lib/ecore_wl2/ecore_wl2_private.h
index cbeca119f6..c79e3fa088 100644
--- a/src/lib/ecore_wl2/ecore_wl2_private.h
+++ b/src/lib/ecore_wl2/ecore_wl2_private.h
@@ -232,7 +232,6 @@ struct _Ecore_Wl2_Window
232 Eina_Bool moving : 1; 232 Eina_Bool moving : 1;
233 Eina_Bool resizing : 1; 233 Eina_Bool resizing : 1;
234 Eina_Bool alpha : 1; 234 Eina_Bool alpha : 1;
235 Eina_Bool transparent : 1;
236 235
237 Eina_Bool input_set : 1; 236 Eina_Bool input_set : 1;
238 Eina_Bool opaque_set : 1; 237 Eina_Bool opaque_set : 1;
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index 0e1cddb8bf..655d587bf5 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -812,23 +812,6 @@ ecore_wl2_window_alpha_set(Ecore_Wl2_Window *window, Eina_Bool alpha)
812} 812}
813 813
814EAPI void 814EAPI void
815ecore_wl2_window_transparent_set(Ecore_Wl2_Window *window, Eina_Bool transparent)
816{
817 EINA_SAFETY_ON_NULL_RETURN(window);
818
819 if (window->transparent == transparent) return;
820
821 window->transparent = transparent;
822
823 if (!window->transparent)
824 ecore_wl2_window_opaque_region_set(window, window->opaque.x,
825 window->opaque.y, window->opaque.w,
826 window->opaque.h);
827 else
828 ecore_wl2_window_opaque_region_set(window, 0, 0, 0, 0);
829}
830
831EAPI void
832ecore_wl2_window_opaque_region_set(Ecore_Wl2_Window *window, int x, int y, int w, int h) 815ecore_wl2_window_opaque_region_set(Ecore_Wl2_Window *window, int x, int y, int w, int h)
833{ 816{
834 int nx = 0, ny = 0, nw = 0, nh = 0; 817 int nx = 0, ny = 0, nw = 0, nh = 0;