user32: A second button-up on the system menu should end the tracking.
commit580915040edfdd6308aad7b98ccfa675a912e0ab
authorHuw Davies <huw@codeweavers.com>
Mon, 5 Jun 2017 12:05:12 +0000 (5 13:05 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 5 Jun 2017 17:49:16 +0000 (5 19:49 +0200)
tree204fc39f09d6220ef13a1af1476b11b4be8121d9
parent77026e244cb70cc3131be45c4c2fb9931b3d3a7a
user32: A second button-up on the system menu should end the tracking.

This isn't quite how Windows behaves.  Windows doesn't follow the
tracking between the menu-bar and the system menu, while Wine does.
Since the system menu of top-level windows is likely to be hidden by
Wine's graphics driver, this seems like useful behaviour to keep and
thus this patch makes things behave sensibly.

Even without Wine's special tracking behaviour, this patch is an
improvement.  The tracking state has no reason to be stored in the
menu structure.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/user32/menu.c