Closed Bug 527748 Opened 14 years ago Closed 14 years ago

Fire mouse enter and exit events when window focus changes

Categories

(Core :: Widget: Cocoa, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1

People

(Reporter: mstange, Assigned: mstange)

References

Details

Attachments

(1 file)

Attached patch v1Splinter Review
Doing this fixes problems like this:

- Move your mouse over a something that has a tooltip, e.g. the refresh button.
- Before the tooltip appears, press Cmd+Tab in order to activate a different
  application. Don't move your mouse.

Now the tooltip appears, even though Firefox is inactive. When bug 527657 is fixed, moving the mouse now will make the tooltip go away, but ideally it shouldn't open in the first place.
The tooltip opens because deactivating the window didn't send a mouse exit event.

The following scenario benefits from mouse enter events:

- Click the Desktop in order to deactivate Firefox.
- Move your mouse over the address bar, or any other text field. The cursor
  correctly keeps its arrow shape.
- Activate Firefox by clicking this text field.

Now the cursor should become an I-beam, but without this patch you need to move the mouse first.
Attachment #411482 - Flags: review?(joshmoz)
Attachment #411482 - Flags: review?(joshmoz) → review+
http://hg.mozilla.org/mozilla-central/rev/086e9c075a15
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Depends on: 534421
You need to log in before you can comment on or make changes to this bug.