GList *it;
gboolean empty = TRUE;
gboolean onlyiconic = TRUE;
+ gboolean noicons = TRUE;
menu_clear_entries(menu);
empty = FALSE;
if (c->iconic) {
- gchar *title = g_strdup_printf("(%s)", c->icon_title);
- e = menu_add_normal(menu, d->desktop, title, NULL, FALSE);
- g_free(title);
+ if (noicons) {
+ menu_add_separator(menu, -1, NULL);
+ noicons = FALSE;
+ }
+ e = menu_add_normal(menu, d->desktop, c->icon_title, NULL, FALSE);
} else {
onlyiconic = FALSE;
e = menu_add_normal(menu, d->desktop, c->title, NULL, FALSE);
ObClient *c, guint state, gpointer data)
{
ObClient *t = self->data.normal.data;
- if (t) { /* it's set to NULL if its destroyed */
+ if (t && !t->locked) { /* it's set to NULL if its destroyed */
gboolean here = state & ShiftMask;
client_activate(t, TRUE, here, TRUE, TRUE, TRUE);