Opened 3 years ago

Closed 3 years ago

Last modified 7 months 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
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 Changed 3 years ago by salty-horse

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

comment:2 Changed 3 years ago by salty-horse

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 Changed 3 years ago by salty-horse

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

Opened bug #7124 for the mouse press issue.

comment:4 Changed 3 years ago by salty-horse

Resolution: fixed
Status: newclosed

comment:5 Changed 7 months ago by digitall

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