Opened 9 years ago

Closed 9 years ago

Last modified 6 years ago

#7101 closed defect (fixed)

GUI: Hovered-over button doesn't highlight after a modal dialog closes

Reported by: salty-horse Owned by:
Priority: low Component: GUI
Version: Keywords:
Cc: Game:

Description

(This was originally part of bug #7094)

Tested with latest git.

1) Launch ScummVM. 2) Choose "Add Game..." 3) Hover over the (disabled) "About" button in the background. Press "ESC" to close the "Add Game" file browser and go back to the main window.

The "About" button will not be highlighted until the mouse cursor is moved. It should highlight as soon as the "Add Game" dialog is closed.

We should simulate a MOUSEMOVE event when modal dialogs close, so GUI elements will be aware of the current mouse position before it's actually being moved.

Ticket imported from: bugs/7101.

Change History (5)

comment:1 by salty-horse, 9 years ago

Pull request at https://github.com/scummvm/scummvm/pull/744

comment:2 by salty-horse, 9 years ago

Found another case where elements aren't aware of the current mouse position:

Hover over a button widget, and press the mouse button. Hover over a second button widget and release the mouse press.

The second button widget should get a highlight. It doesn't, until the mouse is moved again.

comment:3 by salty-horse, 9 years ago

The main issue in this bug was fixed by the pull request mentioned above.

Opened bug #7124 for the mouse press issue.

comment:4 by salty-horse, 9 years ago

Resolution: fixed
Status: newclosed

comment:5 by digitall, 6 years ago

Component: GUI
Note: See TracTickets for help on using tickets.