diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ecore_wl2/Ecore_Wl2.h | 12 | ||||
-rw-r--r-- | src/lib/ecore_wl2/ecore_wl2_private.h | 1 | ||||
-rw-r--r-- | src/lib/ecore_wl2/ecore_wl2_window.c | 17 |
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); | |||
873 | EAPI void ecore_wl2_window_alpha_set(Ecore_Wl2_Window *window, Eina_Bool alpha); | 873 | EAPI 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 | */ | ||
885 | EAPI 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 | ||
814 | EAPI void | 814 | EAPI void |
815 | ecore_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 | |||
831 | EAPI void | ||
832 | ecore_wl2_window_opaque_region_set(Ecore_Wl2_Window *window, int x, int y, int w, int h) | 815 | ecore_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; |