(button_callback): clean up unneeded type casting.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2017-09-05 14:50:22 +03:00
parent 1d2cbee320
commit 6310e07745

View File

@ -68,7 +68,7 @@ button_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *
* when hotkeys are sent to all widgets before the key is * when hotkeys are sent to all widgets before the key is
* handled by the current widget. * handled by the current widget.
*/ */
if (parm == '\n' && WIDGET (h->current->data) == WIDGET (b)) if (parm == '\n' && WIDGET (h->current->data) == w)
{ {
send_message (w, sender, MSG_KEY, ' ', data); send_message (w, sender, MSG_KEY, ' ', data);
return MSG_HANDLED; return MSG_HANDLED;