*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:
parent
fc046c2468
commit
53c40d415d
1 changed files with 3 additions and 0 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue