Open Bug 1059910 Opened 11 years ago Updated 3 years ago

Split concept for activated and focused window

Categories

(Core :: Widget, defect)

defect

Tracking

()

People

(Reporter: enndeakin, Unassigned)

Details

nsIWidgetListener/nsIFocusManager should have separate notifcations for when the window is activated, versus when it is focused. This allows us, for example, to properly handle the distinction between main windows and key windows on Mac, where a different window may be active than the one that is focused.
Actually a window on OS X (an NSWindow object) isn't "active" or not -- it's only "key" or not, or "main" or not. It's an application (an NSApplication object) that's "active" or not. The concept of "key window" is (I think) very easy to understand -- it's the window that has the keyboard focus. But the concept of "main window" is much less clear, and Apple's docs don't help very much. But I did find the following (at https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html): "The foremost document or application window that is the focus of the user’s attention is referred to as the main window."
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.