Fixed: CPApplicationDidChangeScreenParametersNotification was sent once for each window.

Should be sent only once per resize.
This commit is contained in:
Aparajita Fishman committed 2013-08-09 15:01:30 -04:00
1 parent 3beb753c63
commit 06e392ee22
1 file changed
+4 -6
+4 -6
View File
@@ -991,15 +991,13 @@ var resizeTimer = nil;
windowCount = windows.length;
while (windowCount--)
{
[windows[windowCount] resizeWithOldPlatformWindowSize:oldSize];
[[CPNotificationCenter defaultCenter] postNotificationName:CPApplicationDidChangeScreenParametersNotification
object:CPApp
userInfo:nil];
}
}
[[CPNotificationCenter defaultCenter] postNotificationName:CPApplicationDidChangeScreenParametersNotification
object:CPApp
userInfo:nil];
//window.liveResize = NO;
[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];