Move already open find/HTML windows to active space

This is only when invoking the “order front” action and the window is already showing on another space.
This commit is contained in:
Allan Odgaard
2013-04-27 14:14:54 +07:00
parent fda19c565d
commit e1ff0ceaff
2 changed files with 6 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ static std::multimap<oak::uuid_t, HTMLOutputWindowController*> Windows;
[self.window setReleasedWhenClosed:NO];
[self.window setAutorecalculatesContentBorderThickness:NO forEdge:NSMinYEdge];
[self.window setContentBorderThickness:25 forEdge:NSMinYEdge];
[self.window setCollectionBehavior:[self.window collectionBehavior] | NSWindowCollectionBehaviorMoveToActiveSpace];
[OakWindowFrameHelper windowFrameHelperWithWindow:self.window];