Closed
Bug 340592
Opened 19 years ago
Closed 18 years ago
Make the mouse focus model more Mac-like for 1.8
Categories
(Core Graveyard :: Widget: Mac, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.8.1beta1
People
(Reporter: mark, Assigned: mark)
References
Details
(Keywords: fixed1.8.1)
Attachments
(2 files)
31.55 KB,
patch
|
jaas
:
review+
mikepinkerton
:
superreview+
|
Details | Diff | Splinter Review |
32.29 KB,
patch
|
mark
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
The typical Mac focus model is that the active window responds to events like mouse-moved and mousewheel, and inactive windows generally do not. Right now, we implement more of a Windowsy focus model, in which al windows respond to all events all the time. (When the app is inactive, the OS doesn't deliver any events.)
Our current behavior is un-Mac-like, and there are also a few related bugs (some of which are also present in other widget toolkits): when the app or a window is activated by means other than the mouse, no new mouseover occurs; when you mouse off the edge of one (active) window over a different (inactive) window, the mouse-moved event still goes to the active (wrong) window for the first pixel using the coordinates in the inactive window.
Compare the mouse-moved and scrollwheel behavior to Safari, which does not handle mouse-moved or scrollwheel events for the non-main window. In some ways, we'll get some of this behavior with Cocoafox because Cocoa doesn't ordinarily send these events to inactive windows. I'm considering doing this as a 1.8-generation platform-polish improvement too.
Assignee | ||
Comment 1•19 years ago
|
||
This is handled primarily by giving each window its own event dispatch handler, instead of allowing all windows to share one global handler. I'm concerned about behavior in some of the instances where background windows should respond to events, such as drags to and from background windows. (Those do seem to be OK.)
Attachment #224630 -
Flags: review?(joshmoz)
Assignee | ||
Comment 2•19 years ago
|
||
(1.8 branch patch would add to the nsPIWidgetMac_MOZILLA_1_8_BRANCH interface.)
Summary: Make the mouse focus model more Mac-like → Make the mouse focus model more Mac-like for 1.8
Target Milestone: --- → mozilla1.8.1beta1
Version: Trunk → 1.8 Branch
Attachment #224630 -
Flags: review?(joshmoz) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #224630 -
Flags: superreview?(mikepinkerton)
Comment 3•18 years ago
|
||
Comment on attachment 224630 [details] [diff] [review]
Give each window its own event dispatch handler
sr=pink
as an aside....
#if PINK_PROFILING_ACTIVATE
if (KeyDown(0x39)) // press [caps lock] to start the profile
ProfileStart();
#endif
should we just go ahead and remove these?
Attachment #224630 -
Flags: superreview?(mikepinkerton) → superreview+
Assignee | ||
Comment 4•18 years ago
|
||
Checked in on trunk, will bake a little bit before going for 1.8[.1]. I also removed the PINK_PROFILING_ACTIVATE chunks from nsMacEventHandler.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•18 years ago
|
||
Comment on attachment 224630 [details] [diff] [review]
Give each window its own event dispatch handler
Adding to the 1.8.1 radar.
Attachment #224630 -
Flags: approval-branch-1.8.1?(mark)
Assignee | ||
Updated•18 years ago
|
Attachment #224630 -
Flags: approval-branch-1.8.1?(mark)
Assignee | ||
Comment 6•18 years ago
|
||
mconnor says we're still on MOA today.
Attachment #226232 -
Flags: approval-branch-1.8.1+
Assignee | ||
Comment 7•18 years ago
|
||
Checked in on MOZILLA_1_8_BRANCH before 1.8.1b1.
Keywords: fixed1.8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•