ObClient *c = frame->client;
if (e->type == OB_MENU_ENTRY_TYPE_NORMAL) {
+ if (c->locked) {
+ *en = FALSE;
+ continue;
+ }
switch (e->id) {
case CLIENT_ICONIFY:
*en = c->functions & OB_CLIENT_FUNC_ICONIFY;
if (!c)
return;
- if (c->locked)
- return;
-
if (!config_focus_under_mouse)
ignore_start = event_start_ignore_all_enters();
g_assert(c);
- if (c->locked)
- return;
-
if (!config_focus_under_mouse)
ignore_start = event_start_ignore_all_enters();
{
g_assert(c);
- if (c->locked)
- return;
-
client_set_desktop(c, e->id, FALSE, FALSE);
if (f && c->desktop != screen_desktop && c->desktop != DESKTOP_ALL)
/* the client won't even be on the screen anymore, so hide the menu */