diff options
author | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-21 07:54:09 +0000 |
---|---|---|
committer | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-21 07:54:09 +0000 |
commit | 287cd42d8544f064cb7a82fd2dda9018f01f3e4c (patch) | |
tree | 3b7abde9afe2afc9881b7e6f6d0a40fe94c828eb /ui/app_list | |
parent | 8dc081ec61275de8c3fe17349715cfaaa261ac08 (diff) | |
download | chromium_src-287cd42d8544f064cb7a82fd2dda9018f01f3e4c.zip chromium_src-287cd42d8544f064cb7a82fd2dda9018f01f3e4c.tar.gz chromium_src-287cd42d8544f064cb7a82fd2dda9018f01f3e4c.tar.bz2 |
Allow the OSX App Launcher to appear over other fullscreen apps in Mavericks.
On Mavericks with the "Displays have separate Spaces" option, OSX has
stopped switching out of the fullscreen space when activating a window
in the non-active application, other than by clicking its Dock icon.
Since the app launcher Dock icon is not Chrome, this can leave a user in
fullscreen with the app launcher window obscured.
This CL overrides a private method, -[NSWindow
_allowedInOtherAppsFullScreenSpaceWithCollectionBehavior:] to allow the
app launcher to appear on top of other applications in fullscreen. Then,
since clicking that window will make Chrome active, subsequent window
activations will successfully switch the user out of the fullscreen
space.
BUG=326405
Review URL: https://codereview.chromium.org/143753002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245996 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/app_list')
-rw-r--r-- | ui/app_list/cocoa/app_list_window_controller.mm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/app_list/cocoa/app_list_window_controller.mm b/ui/app_list/cocoa/app_list_window_controller.mm index 9d35902..5eae08d 100644 --- a/ui/app_list/cocoa/app_list_window_controller.mm +++ b/ui/app_list/cocoa/app_list_window_controller.mm @@ -25,6 +25,19 @@ return YES; } +// On Mavericks with the "Displays have separate Spaces" option, OSX has stopped +// switching out of the fullscreen space when activating a window in the non- +// active application, other than by clicking its Dock icon. Since the app +// launcher Dock icon is not Chrome, this can leave a user in fullscreen with +// the app launcher window obscured. Overriding this private method allows the +// app launcher to appear on top of other applications in fullscreen. Then, +// since clicking that window will make Chrome active, subsequent window +// activations will successfully switch the user out of the fullscreen space. +- (BOOL)_allowedInOtherAppsFullScreenSpaceWithCollectionBehavior: + (NSUInteger)collectionBehavior { + return YES; +} + @end @implementation AppListWindowController; |