for (it = client_list; it != NULL; it = it->next) {
Client *c = it->data;
if (c->desktop >= num)
- client_set_desktop(num - 1);
+ client_set_desktop(c, num - 1);
}
dispatch_ob(Event_Ob_NumDesktops, num, old);
g_assert(num < screen_num_desktops);
- g_message("Moving to desktop %u", num);
-
old = screen_desktop;
screen_desktop = num;
PROP_SET32(ob_root, net_current_desktop, cardinal, num);