diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-07 20:02:18 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-07 20:02:18 +0000 |
commit | 90c7dae0e0d58deafb29fab338f96c67661d512f (patch) | |
tree | ca7a77a03483fa81c70759a126c085a01962fcda /tools | |
parent | 671b32bdc046b5226216182647ca5a5b048e7bee (diff) | |
download | chromium_src-90c7dae0e0d58deafb29fab338f96c67661d512f.zip chromium_src-90c7dae0e0d58deafb29fab338f96c67661d512f.tar.gz chromium_src-90c7dae0e0d58deafb29fab338f96c67661d512f.tar.bz2 |
[Mac] Snap fullscreen window to screen after exiting spaces
Users can arbitrarily move fullscreen windows. If the fullscreen window changes screen then the fullscreen controller will snap it to the screen. If the fullscreen window doesn't change screen then the window will remain where it is which looks weird.
This patch fixes the issue by always snapping the window's frame to the screen any time it has moved.
An alternative fix would be to override a new 10.6 API: -[NSWindow isMovable] and return NO. This would allow users to move windows between spaces but not the position inside a space.
I think detecting window move is better because:
- it works on 10.5 also
- users with multiple monitors can uses space to move the window between monitors
Patch by Sailesh Agrawal <fnepal@gmail.com>.
BUG=41693
TEST=Verified that the full screen window snaps to the screen when moved in Spaces. Verified that changing the screen resolution, mirroring, etc... all correct cause the full screen window to snap to the screen.
Review URL: http://codereview.chromium.org/3343009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions