(dlg_default_callback): get rid of extra type cast.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(dlg_mouse_event): minor refactoring.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>