Add support for live resizing

This commit is contained in:
Bjorn Winckler
2009-04-05 18:22:59 +02:00
parent 23e38c4298
commit 27d4ee55ae
+11 -2
View File
@@ -1170,6 +1170,10 @@ fsEventCallback(ConstFSEventStreamRef streamRef,
- (oneway void)processInput:(in bycopy NSArray *)queue
forIdentifier:(unsigned)identifier
{
// NOTE: Input is not handled immediately since this is a distribued object
// call and as such can arrive at unpredictable times. Instead, queue the
// input and process it when the run loop is updated.
if (!queue)
return;
@@ -1183,9 +1187,13 @@ fsEventCallback(ConstFSEventStreamRef streamRef,
[inputQueues setObject:queue forKey:key];
}
// NOTE: We must use "common modes" instead of "default mode", otherwise
// the input queue will not be processed e.g. during live resizing ("event
// tracking mode").
[self performSelector:@selector(processInputQueues:)
withObject:nil
afterDelay:0];
afterDelay:0
inModes:[NSArray arrayWithObject:NSRunLoopCommonModes]];
}
- (MMVimController *)keyVimController
@@ -2177,7 +2185,8 @@ fsEventCallback(ConstFSEventStreamRef streamRef,
if (processingFlag < 0)
[self performSelector:@selector(processInputQueues:)
withObject:nil
afterDelay:0];
afterDelay:0
inModes:[NSArray arrayWithObject:NSRunLoopCommonModes]];
processingFlag = 0;
}