flag the border for updating when removing a .desktop

when a desktop is updated, check borders w/o matches to see if they now have a match. there is no need to update borders that have a match other than event->previous, since the one they have is good enough


SVN revision: 29560
This commit is contained in:
rephorm 2007-04-17 03:07:16 +00:00 committed by rephorm
parent 4e08a11c5c
commit 0c0d0a5aff
1 changed files with 15 additions and 4 deletions

View File

@ -4331,7 +4331,11 @@ _e_border_cb_efreet_desktop_change(void *data, int ev_type, void *ev)
bd = l->data;
if (bd->desktop == event->current)
bd->desktop = NULL;
{
bd->desktop = NULL;
bd->changes.icon = 1;
bd->changed = 1;
}
}
break;
case EFREET_DESKTOP_CHANGE_UPDATE:
@ -4341,11 +4345,18 @@ _e_border_cb_efreet_desktop_change(void *data, int ev_type, void *ev)
E_Border *bd;
bd = l->data;
if (bd->desktop == event->previous)
{
bd->desktop = event->current;
/* check all borders. the updated icon may now apply to them (e.g. adding a StartupWMClass) */
bd->changes.icon = 1;
bd->changed = 1;
bd->changes.icon = 1;
bd->changed = 1;
}
else if (bd->desktop == NULL)
{
bd->changes.icon = 1;
bd->changed = 1;
}
}
break;
}