fix a bug where dragging a maximized window using the pager would cause that window to disappear from the pager

also fix drag of maximized windows using pagers in general
ticket #1037


SVN revision: 73327
This commit is contained in:
Mike Blumenkrantz 2012-07-05 07:18:49 +00:00
parent af37dada32
commit 9f4057044c
1 changed files with 4 additions and 0 deletions

View File

@ -2074,7 +2074,10 @@ _pager_drop_cb_drop(void *data, const char *type, void *event_info)
if (bd)
{
E_Maximize max = bd->maximized;
if (bd->iconic) e_border_uniconify(bd);
if (bd->maximized)
e_border_unmaximize(bd, E_MAXIMIZE_BOTH);
e_border_desk_set(bd, pd->desk);
if ((!pw) || ((pw) && (!pw->drag.no_place)))
{
@ -2089,6 +2092,7 @@ _pager_drop_cb_drop(void *data, const char *type, void *event_info)
e_border_move(bd, nx + zx, ny + zy);
}
if (max) e_border_maximize(bd, max);
}
}