*fix* segfault when removing last virtual desktop while being on it

git-svn-id: http://tint2.googlecode.com/svn/trunk@619 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
Andreas.Fink85 2010-12-29 10:51:23 +00:00
parent fc046c2468
commit 53c40d415d

View file

@ -524,6 +524,9 @@ void event_property_notify (XEvent *e)
else if (at == server.atom._NET_NUMBER_OF_DESKTOPS) {
if (!taskbar_enabled) return;
server.nb_desktop = server_get_number_of_desktop ();
if (server.nb_desktop <= server.desktop) {
server.desktop = server.nb_desktop-1;
}
cleanup_taskbar();
init_taskbar();
for (i=0 ; i < nb_panel ; i++) {