aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2012-08-16 09:40:02 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-08-16 09:40:02 +0000
commitf9d98db03efc0d7acdac8bc62fcb16df6cbaf13c (patch)
tree79cd3d0c041ef1c5c15b76842750b5c5fa204d2b /legacy/elementary/src/lib/elm_win.c
parentelm elm_object.h: Fixed documentation. (diff)
downloadefl-f9d98db03efc0d7acdac8bc62fcb16df6cbaf13c.tar.gz
Elm: Add a mouse,out event (when we have a wayland frame) to handle
the case of resetting the wayland cursor image. Fixes ticket #1293. Increase the size of the event rects on the border theme to allow for easier resizing. SVN revision: 75313
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 60db92c70e..f96f1fc211 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1842,6 +1842,22 @@ _elm_win_frame_cb_resize_show(void *data,
}
static void
+_elm_win_frame_cb_resize_hide(void *data,
+ Evas_Object *obj __UNUSED__,
+ const char *sig __UNUSED__,
+ const char *source __UNUSED__)
+{
+ Elm_Win_Smart_Data *sd;
+
+ if (!(sd = data)) return;
+ if (sd->resizing) return;
+
+#ifdef HAVE_ELEMENTARY_WAYLAND
+ ecore_wl_window_cursor_default_restore(sd->wl.win);
+#endif
+}
+
+static void
_elm_win_frame_cb_resize_start(void *data,
Evas_Object *obj __UNUSED__,
const char *sig __UNUSED__,
@@ -1961,6 +1977,9 @@ _elm_win_frame_add(Elm_Win_Smart_Data *sd,
(sd->frame_obj, "elm,action,resize,show", "*",
_elm_win_frame_cb_resize_show, sd);
edje_object_signal_callback_add
+ (sd->frame_obj, "elm,action,resize,hide", "*",
+ _elm_win_frame_cb_resize_hide, sd);
+ edje_object_signal_callback_add
(sd->frame_obj, "elm,action,resize,start", "*",
_elm_win_frame_cb_resize_start, sd);
edje_object_signal_callback_add
@@ -1991,6 +2010,9 @@ _elm_win_frame_del(Elm_Win_Smart_Data *sd)
(sd->frame_obj, "elm,action,resize,show", "*",
_elm_win_frame_cb_resize_show);
edje_object_signal_callback_del
+ (sd->frame_obj, "elm,action,resize,hide", "*",
+ _elm_win_frame_cb_resize_hide);
+ edje_object_signal_callback_del
(sd->frame_obj, "elm,action,resize,start", "*",
_elm_win_frame_cb_resize_start);
edje_object_signal_callback_del