aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2014-12-07 19:36:19 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2014-12-07 20:10:40 -0500
commitf9a7f07bac7197024d6363edec4e0005c2f3b33c (patch)
tree8b558827052933752c4ae0fccee6e9f7d4c11ab0 /legacy/elementary/src/lib/elm_win.c
parentwidget: Add/Fix internal documentations. (diff)
downloadefl-f9a7f07bac7197024d6363edec4e0005c2f3b33c.tar.gz
tooltip windows now set shape input rect in elm_win
this fixes a longstanding race condition where tooltip windowss could exist with a shape rectangle due to race conditions between applying window properties (eg. alpha) and reapplying the input rect
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 8defbc3ab4..6d19710c18 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1749,6 +1749,10 @@ _elm_win_obj_intercept_show(void *data,
evas_object_show(sd->pointer.obj);
}
evas_object_show(obj);
+#ifdef ELEMENTARY_X
+ if (sd->type == ELM_WIN_TOOLTIP)
+ ecore_x_window_shape_input_rectangle_set(sd->x.xwin, 0, 0, 0, 0);
+#endif
}
EOLIAN static void
@@ -2016,6 +2020,7 @@ _elm_win_xwin_update(Elm_Win_Data *sd)
case ELM_WIN_TOOLTIP:
ecore_x_netwm_window_type_set(sd->x.xwin, ECORE_X_WINDOW_TYPE_TOOLTIP);
+ ecore_x_window_shape_input_rectangle_set(sd->x.xwin, 0, 0, 0, 0);
break;
case ELM_WIN_NOTIFICATION: