mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
cocoa: only call resize for view changing frame
This commit is contained in:
parent
0541151b40
commit
e75ce6c869
@ -147,6 +147,7 @@
|
||||
{
|
||||
[super setFrameSize:size];
|
||||
[self signalMousePosition];
|
||||
[self.adapter setNeedsResize];
|
||||
}
|
||||
|
||||
- (NSPoint)convertPointToPixels:(NSPoint)point
|
||||
|
@ -47,13 +47,9 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)windowDidResize:(NSNotification *) notification
|
||||
{
|
||||
[self.adapter setNeedsResize];
|
||||
}
|
||||
|
||||
- (void)windowDidChangeBackingProperties:(NSNotification *)notification
|
||||
{
|
||||
// XXX: we maybe only need expose for this
|
||||
[self.adapter setNeedsResize];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user