projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dba35d9
)
ecore-wl: Optimize setting of window input region
author
Chris Michael
<cp.michael@samsung.com>
Wed, 9 Apr 2014 08:41:02 +0000
(09:41 +0100)
committer
Chris Michael
<cp.michael@samsung.com>
Wed, 9 Apr 2014 08:56:31 +0000
(09:56 +0100)
@bugfix: Store the input region into the window structure, and don't
re-add a duplicate input region (done by comparison of saved region).
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wayland/ecore_wl_window.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore_wayland/ecore_wl_window.c
b/src/lib/ecore_wayland/ecore_wl_window.c
index
92b656e
..
5dfb35c
100644
(file)
--- a/
src/lib/ecore_wayland/ecore_wl_window.c
+++ b/
src/lib/ecore_wayland/ecore_wl_window.c
@@
-602,6
+602,17
@@
ecore_wl_window_input_region_set(Ecore_Wl_Window *win, int x, int y, int w, int
if (!win) return;
+ win->input.x = x;
+ win->input.y = y;
+ if ((w > 0) && (h > 0))
+ {
+ if ((win->input.w == w) && (win->input.h == h))
+ return;
+
+ win->input.w = w;
+ win->input.h = h;
+ }
+
if ((win->type != ECORE_WL_WINDOW_TYPE_FULLSCREEN) ||
(win->type != ECORE_WL_WINDOW_TYPE_DND))
{