Close menu properly on unbound keys.
This commit is contained in:
parent
f6ad401dab
commit
dd33644de4
2 changed files with 2 additions and 3 deletions
|
@ -1093,7 +1093,7 @@ static void event_handle_menu(ObClient *client, XEvent *e)
|
||||||
|
|
||||||
/* will call the menu_hide() for each submenu as well */
|
/* will call the menu_hide() for each submenu as well */
|
||||||
if (!it)
|
if (!it)
|
||||||
menu_hide(menu_visible->data);
|
((ObMenu *)menu_visible->data)->hide(menu_visible->data);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case MotionNotify:
|
case MotionNotify:
|
||||||
|
|
|
@ -581,8 +581,7 @@ void menu_control_keyboard_nav(unsigned int key)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
if (current_menu)
|
((ObMenu *)menu_visible->data)->hide(menu_visible->data);
|
||||||
current_menu->hide(current_menu);
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue