[w3m-dev-en 00021] 0.1.6: MENU_CANCEL

From: w3m-dev-en@mips.rhein-neckar.de
Date: Sun Jan 23 2000 - 12:41:14 CST


If w3m runs in an xterm and a menu is popped up, clicking outside
the menu will close it.

This doesn't work on the console with GPM (or sysmouse). Clicks
outside the menu are simply ignored.

process_mMouse() checks whether the position was inside the active
menu and returns MENU_CANCEL if not. However, there is no check
for MENU_CANCEL in all the code. Thus, I am not surprised that no
action is taken under GPM. I don't understand why the menu is closed
in an xterm, though. This seems to happen "by accident". What is the
code path?

I suspect that the failure to check for MENU_CANCEL is actually a
bug which just happened to go unnoticed due to the behavior being
accidentally as expected in an xterm.

-- 
Christian "naddy" Weisgerber                  naddy@mips.rhein-neckar.de



This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:43 CDT