Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_WindowCocoa.mm
| Show First 20 Lines • Show All 409 Lines • ▼ Show 20 Lines | [m_window registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType, | ||||
| NSStringPboardType, | NSStringPboardType, | ||||
| NSTIFFPboardType, | NSTIFFPboardType, | ||||
| nil]]; | nil]]; | ||||
| if (is_dialog && parentWindow) { | if (is_dialog && parentWindow) { | ||||
| [parentWindow->getCocoaWindow() addChildWindow:m_window ordered:NSWindowAbove]; | [parentWindow->getCocoaWindow() addChildWindow:m_window ordered:NSWindowAbove]; | ||||
| [m_window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary]; | [m_window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary]; | ||||
| } | } | ||||
| else if (state != GHOST_kWindowStateFullScreen) { | else { | ||||
| [m_window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary]; | [m_window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary]; | ||||
| } | } | ||||
| if (state == GHOST_kWindowStateFullScreen) | if (state == GHOST_kWindowStateFullScreen) | ||||
| setState(GHOST_kWindowStateFullScreen); | setState(GHOST_kWindowStateFullScreen); | ||||
| setNativePixelSize(); | setNativePixelSize(); | ||||
| ▲ Show 20 Lines • Show All 811 Lines • Show Last 20 Lines | |||||