mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-29 09:52:03 +00:00
Fixed: CPApplicationDidChangeScreenParametersNotification was sent once for each window.
Should be sent only once per resize.
This commit is contained in:
1 parent
3beb753c63
commit
06e392ee22
1 file changed
+4
-6
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user