efl_ui_win - use ecore_x window stack api to set up property in x11

This commit is contained in:
Carsten Haitzler 2016-12-09 15:27:10 +09:00
parent 75a429328a
commit 4b96738443
1 changed files with 10 additions and 3 deletions

View File

@ -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