all repos — openbox @ d987d339512083d2fe2fddeee7dc23a6a140e13b

openbox fork - make it a bit more like ryudo

disable the current desktop in the send-to menu
Dana Jansens danakj@orodu.net
commit

d987d339512083d2fe2fddeee7dc23a6a140e13b

parent

fd364fe4248256d11d69c4d19bc9b27c0fb9d269

1 files changed, 9 insertions(+), 0 deletions(-)

jump to
M plugins/menu/client_menu.cplugins/menu/client_menu.c

@@ -31,6 +31,13 @@ GList *it = self->entries;

/* check if we have to update. lame */ while (it != NULL) { + if (i == screen_desktop) { + if (((ObMenuEntry *)it->data)->enabled) + break; + } else { + if (!((ObMenuEntry *)it->data)->enabled) + break; + } if (i >= screen_num_desktops) break; if (strcmp(screen_desktop_names[i],

@@ -49,6 +56,8 @@ Action *a = action_from_string("sendtodesktop");

a->data.sendto.desk = i; a->data.sendto.follow = FALSE; e = menu_entry_new(screen_desktop_names[i], a); + if (i == screen_desktop) + e->enabled = FALSE; menu_add_entry(self, e); }