forked from enlightenment/enlightenment
parent
245b40b816
commit
aa0ccade2d
|
@ -775,6 +775,24 @@ _pager_face_cb_event_border_add(void *data, int type, void *event)
|
||||||
if ((face->zone != ev->border->zone) ||
|
if ((face->zone != ev->border->zone) ||
|
||||||
(_pager_face_border_find(face, ev->border)))
|
(_pager_face_border_find(face, ev->border)))
|
||||||
return 1;
|
return 1;
|
||||||
|
if (ev->border->sticky)
|
||||||
|
{
|
||||||
|
Evas_List *l;
|
||||||
|
|
||||||
|
/* go through all desks */
|
||||||
|
for (l = face->desks; l; l = l->next)
|
||||||
|
{
|
||||||
|
Pager_Win *pw;
|
||||||
|
|
||||||
|
pd = l->data;
|
||||||
|
/* create it and add it */
|
||||||
|
pw = _pager_window_new(pd, ev->border);
|
||||||
|
if (pw)
|
||||||
|
pd->wins = evas_list_append(pd->wins, pw);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
pd = _pager_face_desk_find(face, ev->border->desk);
|
pd = _pager_face_desk_find(face, ev->border->desk);
|
||||||
if (pd)
|
if (pd)
|
||||||
{
|
{
|
||||||
|
@ -784,6 +802,7 @@ _pager_face_cb_event_border_add(void *data, int type, void *event)
|
||||||
if (pw)
|
if (pw)
|
||||||
pd->wins = evas_list_append(pd->wins, pw);
|
pd->wins = evas_list_append(pd->wins, pw);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1013,6 +1032,8 @@ _pager_face_cb_event_border_desk_set(void *data, int type, void *event)
|
||||||
}
|
}
|
||||||
/* the border isnt in this pager at all - it must have moved zones */
|
/* the border isnt in this pager at all - it must have moved zones */
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (!ev->border->sticky)
|
||||||
{
|
{
|
||||||
/* find the pager desk it needs to go to */
|
/* find the pager desk it needs to go to */
|
||||||
pd = _pager_face_desk_find(face, ev->border->desk);
|
pd = _pager_face_desk_find(face, ev->border->desk);
|
||||||
|
@ -1024,6 +1045,19 @@ _pager_face_cb_event_border_desk_set(void *data, int type, void *event)
|
||||||
pd->wins = evas_list_append(pd->wins, pw);
|
pd->wins = evas_list_append(pd->wins, pw);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* go through all desks */
|
||||||
|
for (l = face->desks; l; l = l->next)
|
||||||
|
{
|
||||||
|
pd = l->data;
|
||||||
|
/* create it and add it */
|
||||||
|
pw = _pager_window_new(pd, ev->border);
|
||||||
|
if (pw)
|
||||||
|
pd->wins = evas_list_append(pd->wins, pw);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue