Reset 'last menu', fixes DA menu restore after double-click. Fixes #139

Full-screen DAs/Previews assume they were launched from a menu and need to
restore the menu bar and hilite state. If launched via double-click there
is no hilite state to restore; handle this by setting the "last menu id"
to an unused value so the HiliteMenu call is a no-op.
This commit is contained in:
Joshua Bell 2019-03-17 16:15:00 -07:00
parent 2905a5c930
commit 36439b1219

View File

@ -3781,6 +3781,10 @@ ctl: .byte 0
;;; ============================================================
.proc handle_content_click
;; Subsequent action was not triggered by a menu, so hilite is not
;; necessary. https://github.com/inexorabletash/a2d/issues/139
copy #$FF, menu_click_params::menu_id
bit active_window_view_by
bpl :+
jmp clear_selection