Ticket #330: show dropped down menu is screen has been resized.
Now works for both values of "menuBar visible" option. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
родитель
c313396a45
Коммит
8a1c364ff0
14
src/menu.c
14
src/menu.c
@ -391,13 +391,17 @@ menubar_callback (Widget *w, widget_msg_t msg, int parm)
|
||||
}
|
||||
|
||||
case WIDGET_DRAW:
|
||||
if (menubar_visible)
|
||||
if (menubar_visible) {
|
||||
menubar_draw (menubar);
|
||||
else
|
||||
/* try show menu after screen resize */
|
||||
send_message (w, WIDGET_FOCUS, 0);
|
||||
return MSG_HANDLED;
|
||||
return MSG_HANDLED;
|
||||
}
|
||||
/* fall through */
|
||||
|
||||
case WIDGET_RESIZED:
|
||||
/* try show menu after screen resize */
|
||||
send_message (w, WIDGET_FOCUS, 0);
|
||||
return MSG_HANDLED;
|
||||
|
||||
default:
|
||||
return default_proc (msg, parm);
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user