all repos — openbox @ def76092b587e7e9a2b212dc5211773e336525e1

openbox fork - make it a bit more like ryudo

disable the "Go there" menu entry when its the current desktop
Dana Jansens danakj@orodu.net
commit

def76092b587e7e9a2b212dc5211773e336525e1

parent

7c80db2552c97be9145ce88dd40f80b0873f56ef

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M openbox/client_list_menu.copenbox/client_list_menu.c

@@ -86,10 +86,14 @@ /* no entries */

GSList *acts = NULL; ObAction* act; + ObMenuEntry *e; + act = action_from_string("Desktop", OB_USER_ACTION_MENU_SELECTION); act->data.desktop.desk = d->desktop; acts = g_slist_append(acts, act); - menu_add_normal(menu, 0, _("Go there..."), acts); + e = menu_add_normal(menu, 0, _("Go there..."), acts); + if (d->desktop == screen_desktop) + e->data.normal.enabled = FALSE; } }