Menu: fix for the menu disappearing with 2 clicks.

* Bug: on a non-mobile size, if the user clicked twice on the menu, it
disappeared. The bug comes from the delegate handler. Indeed, the
delegate was applied, whatever the size of the window. It should only
be executed on a small screen.