make the all desktops thinger get disabled too
This commit is contained in:
parent
d7f51ce0a6
commit
8226cd7026
1 changed files with 3 additions and 5 deletions
|
@ -128,6 +128,7 @@ static void send_to_update(ObMenuFrame *frame, gpointer data)
|
||||||
guint i;
|
guint i;
|
||||||
GSList *acts;
|
GSList *acts;
|
||||||
ObAction *act;
|
ObAction *act;
|
||||||
|
ObMenuEntry *e;;
|
||||||
|
|
||||||
menu_clear_entries(menu);
|
menu_clear_entries(menu);
|
||||||
|
|
||||||
|
@ -153,13 +154,10 @@ static void send_to_update(ObMenuFrame *frame, gpointer data)
|
||||||
act->data.sendto.desk = desk;
|
act->data.sendto.desk = desk;
|
||||||
act->data.sendto.follow = FALSE;
|
act->data.sendto.follow = FALSE;
|
||||||
acts = g_slist_prepend(NULL, act);
|
acts = g_slist_prepend(NULL, act);
|
||||||
menu_add_normal(menu, desk, name, acts);
|
e = menu_add_normal(menu, desk, name, acts);
|
||||||
|
|
||||||
if (frame->client->desktop == desk) {
|
if (frame->client->desktop == desk)
|
||||||
ObMenuEntry *e = menu_find_entry_id(menu, desk);
|
|
||||||
g_assert(e);
|
|
||||||
e->data.normal.enabled = FALSE;
|
e->data.normal.enabled = FALSE;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue