Fire mouse enter and exit events when window focus changes

RESOLVED FIXED in mozilla1.9.3a1

Status

()

Core
Widget: Cocoa
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: mstange, Assigned: mstange)

Tracking

Trunk
mozilla1.9.3a1
All
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

9 years ago
Created attachment 411482 [details] [diff] [review]
v1

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)

Updated

9 years ago
Attachment #411482 - Flags: review?(joshmoz) → review+
(Assignee)

Comment 1

9 years ago
http://hg.mozilla.org/mozilla-central/rev/086e9c075a15
Status: ASSIGNED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
(Assignee)

Updated

9 years ago
Depends on: 534421
You need to log in before you can comment on or make changes to this bug.