- ObClientIcon *icon;
-
- act = action_from_string("activate");
- act->data.activate.c = c;
- acts = g_slist_prepend(NULL, act);
- e = menu_add_normal(menu, i,
- (c->iconic ? c->icon_title : c->title), acts);
+ const ObClientIcon *icon;
+
+ empty = FALSE;
+
+ act = action_from_string("Activate",
+ OB_USER_ACTION_MENU_SELECTION);
+ act->data.activate.any.c = c;
+ acts = g_slist_append(acts, act);
+ act = action_from_string("Desktop",
+ OB_USER_ACTION_MENU_SELECTION);
+ act->data.desktop.desk = d->desktop;
+ acts = g_slist_append(acts, act);
+
+ if (c->iconic) {
+ gchar *title = g_strdup_printf("(%s)", c->icon_title);
+ e = menu_add_normal(menu, i, title, acts, FALSE);
+ g_free(title);
+ } else {
+ onlyiconic = FALSE;
+ e = menu_add_normal(menu, i, c->title, acts, FALSE);
+ }