E: Fix window hide

The idea of not deleting the borders of unmapped windows started with
r12777 to fix problems when changing virtual desktops. A lot of stuff
was added later to fix this problem, but this original fix has lived on.

When hunting down a mplayer bug raster commented in r14744:
"we need to re-enable the above. when clients hide windows they often
dont destory - keep around to do somethign else with. if we dont unmanage
then we have all sorts of problems believeing it still exists. bigger
problems than mplayer. :)"

So I guess the right thing to do is to destroy the borders of hidden
windows, fixes #917

SVN revision: 77363
This commit is contained in:
Sebastian Dransfeld 2012-10-03 11:40:14 +00:00
parent ac67283ec2
commit cf35adade9
1 changed files with 1 additions and 2 deletions

View File

@ -5006,8 +5006,7 @@ _e_border_cb_window_hide(void *data __UNUSED__,
return ECORE_CALLBACK_PASS_ON;
}
/* Don't delete hidden or iconified windows */
if ((bd->iconic) || ((!bd->visible) && (!bd->new_client)) ||
(bd->await_hide_event > 0))
if ((bd->iconic) || (bd->await_hide_event > 0))
{
// printf(" Don't delete hidden or iconified windows\n");
// printf(" bd->iconic = %i, bd->visible = %i, bd->new_client = %i, bd->await_hide_event = %i\n",