aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-12-09 15:27:10 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-12-16 16:16:53 +0900
commit4b9673844307c4b73aac37ecf7f96632ee38a18e (patch)
tree8551a042c09a32fe07b5ca87c2f39844505f4ded /src/lib/elementary/efl_ui_win.c
parentefl_ui_win - teamwork really has issues and i think needs deprecation (diff)
downloadefl-4b9673844307c4b73aac37ecf7f96632ee38a18e.tar.gz
efl_ui_win - use ecore_x window stack api to set up property in x11
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index b3353750e5..436501727b 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -3147,9 +3147,12 @@ _elm_win_xwin_update(Efl_Ui_Win_Data *sd)
if (sd->stack_master_id)
{
- Ecore_X_Window win = atoi(sd->stack_master_id);
- if (win) ecore_x_icccm_transient_for_set(sd->x.xwin, win);
- // XXX: set property saying we are a stack window
+ Ecore_X_Window win = strtol(sd->stack_master_id, NULL, 16);
+ if (win)
+ {
+ ecore_x_icccm_transient_for_set(sd->x.xwin, win);
+ ecore_x_e_stack_type_set(sd->x.xwin, ECORE_X_STACK_STANDARD);
+ }
}
else
{
@@ -4911,7 +4914,11 @@ _elm_win_finalize_internal(Eo *obj, Efl_Ui_Win_Data *sd, const char *name, Elm_W
_internal_elm_win_xwindow_get(sd);
if (sd->x.xwin)
{
+ char buf[128];
+
ecore_x_io_error_handler_set(_elm_x_io_err, NULL);
+ snprintf(buf, sizeof(buf), "%x", sd->x.xwin);
+ sd->stack_id = eina_stringshare_add(buf);
}
#endif