summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-02-28 10:12:31 -0500
committerChris Michael <cp.michael@samsung.com>2017-02-28 10:12:31 -0500
commit5b9374583e3fd450ac53c566095c398f0d6c5cfe (patch)
tree5ef1be4e619fe3988f6c04da410363fef9559c8e /src
parentf877c46ad85001ec4b521b32268bb9f91300b166 (diff)
ecore-wl2: Actually update input/opaque regions
Previous commit f8f71d05cdc7a8578329f75b0101662220390f20 to avoid resetting opaque & input regions was not totally complete as it did not update the actual values...small patch to fix that. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index c078ba440e..2e09cba9b9 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -881,6 +881,8 @@ ecore_wl2_window_opaque_region_set(Ecore_Wl2_Window *window, int x, int y, int w
881 881
882 EINA_SAFETY_ON_NULL_RETURN(window); 882 EINA_SAFETY_ON_NULL_RETURN(window);
883 883
884 fprintf(stderr, "Set Opaque Region: %d %d %d %d\n", x, y, w, h);
885
884 if ((x == 0) && (y == 0) && (w == 0) && (h == 0)) 886 if ((x == 0) && (y == 0) && (w == 0) && (h == 0))
885 { 887 {
886 if (window->surface) 888 if (window->surface)
@@ -922,6 +924,10 @@ ecore_wl2_window_opaque_region_set(Ecore_Wl2_Window *window, int x, int y, int w
922 (window->opaque.w == nw) && (window->opaque.h == nh)) 924 (window->opaque.w == nw) && (window->opaque.h == nh))
923 return; 925 return;
924 926
927 window->opaque.x = nx;
928 window->opaque.y = ny;
929 window->opaque.w = nw;
930 window->opaque.h = nh;
925 window->opaque_set = EINA_TRUE; 931 window->opaque_set = EINA_TRUE;
926 932
927 if (!window->surface) return; 933 if (!window->surface) return;
@@ -947,6 +953,8 @@ ecore_wl2_window_input_region_set(Ecore_Wl2_Window *window, int x, int y, int w,
947 953
948 EINA_SAFETY_ON_NULL_RETURN(window); 954 EINA_SAFETY_ON_NULL_RETURN(window);
949 955
956 fprintf(stderr, "Set Input Region: %d %d %d %d\n", x, y, w, h);
957
950 if ((x == 0) && (y == 0) && (w == 0) && (h == 0)) 958 if ((x == 0) && (y == 0) && (w == 0) && (h == 0))
951 { 959 {
952 if (window->surface) 960 if (window->surface)
@@ -988,6 +996,10 @@ ecore_wl2_window_input_region_set(Ecore_Wl2_Window *window, int x, int y, int w,
988 (window->input_rect.w == nw) && (window->input_rect.h == nh)) 996 (window->input_rect.w == nw) && (window->input_rect.h == nh))
989 return; 997 return;
990 998
999 window->input_rect.x = nx;
1000 window->input_rect.y = ny;
1001 window->input_rect.w = nw;
1002 window->input_rect.h = nh;
991 window->input_set = EINA_TRUE; 1003 window->input_set = EINA_TRUE;
992 1004
993 if (!window->surface) return; 1005 if (!window->surface) return;