| 
																	
																	
																		
																	
																	
																 | 
																@@ -129,17 +129,15 @@ struct Window::PrivateData { | 
															
														
														
													
														
															
																 | 
																 | 
																        init(); | 
																 | 
																 | 
																        init(); | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																        const PuglInternals* const parentImpl(parent.pData->fView->impl); | 
																 | 
																 | 
																        const PuglInternals* const parentImpl(parent.pData->fView->impl); | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        // NOTE: almost a 1:1 copy of setTransientWinId() | 
															
														
														
													
														
															
																 | 
																 | 
																#if defined(DISTRHO_OS_WINDOWS) | 
																 | 
																 | 
																#if defined(DISTRHO_OS_WINDOWS) | 
															
														
														
													
														
															
																 | 
																 | 
																        // TODO | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        SetWindowLongPtr(hwnd, GWLP_HWNDPARENT, (LONG_PTR)parentImpl->hwnd); | 
															
														
														
													
														
															
																 | 
																 | 
																#elif defined(DISTRHO_OS_MAC) | 
																 | 
																 | 
																#elif defined(DISTRHO_OS_MAC) | 
															
														
														
													
														
															
																 | 
																 | 
																        [parentImpl->window orderWindow:NSWindowBelow relativeTo:[[mView window] windowNumber]]; | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        [mWindow orderWindow:NSWindowBelow relativeTo:parentImpl->window]; | 
															
														
														
													
														
															
																 | 
																 | 
																#else | 
																 | 
																 | 
																#else | 
															
														
														
													
														
															
																 | 
																 | 
																        XSetTransientForHint(xDisplay, xWindow, parentImpl->win); | 
																 | 
																 | 
																        XSetTransientForHint(xDisplay, xWindow, parentImpl->win); | 
															
														
														
													
														
															
																 | 
																 | 
																#endif | 
																 | 
																 | 
																#endif | 
															
														
														
													
														
															
																 | 
																 | 
																        return; | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        // maybe unused | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        (void)parentImpl; | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																    } | 
																 | 
																 | 
																    } | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																    PrivateData(Application& app, Window* const self, const intptr_t parentId) | 
																 | 
																 | 
																    PrivateData(Application& app, Window* const self, const intptr_t parentId) | 
															
														
														
													
												
													
														
															
																| 
																	
																		
																	
																	
																		
																	
																	
																 | 
																@@ -626,14 +624,11 @@ struct Window::PrivateData { | 
															
														
														
													
														
															
																 | 
																 | 
																        DISTRHO_SAFE_ASSERT_RETURN(winId != 0,); | 
																 | 
																 | 
																        DISTRHO_SAFE_ASSERT_RETURN(winId != 0,); | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																#if defined(DISTRHO_OS_WINDOWS) | 
																 | 
																 | 
																#if defined(DISTRHO_OS_WINDOWS) | 
															
														
														
													
														
															
																 | 
																 | 
																        // TODO | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        SetWindowLongPtr(hwnd, GWLP_HWNDPARENT, (LONG_PTR)winId); | 
															
														
														
													
														
															
																 | 
																 | 
																#elif defined(DISTRHO_OS_MAC) | 
																 | 
																 | 
																#elif defined(DISTRHO_OS_MAC) | 
															
														
														
													
														
															
																 | 
																 | 
																        NSWindow* const window = [NSApp windowWithWindowNumber:winId]; | 
																 | 
																 | 
																        NSWindow* const window = [NSApp windowWithWindowNumber:winId]; | 
															
														
														
													
														
															
																 | 
																 | 
																        DISTRHO_SAFE_ASSERT_RETURN(window != nullptr,); | 
																 | 
																 | 
																        DISTRHO_SAFE_ASSERT_RETURN(window != nullptr,); | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        [window addChildWindow:mWindow | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																                       ordered:NSWindowAbove]; | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        [mWindow makeKeyWindow]; | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        [mWindow orderWindow:NSWindowBelow relativeTo:window]; | 
															
														
														
													
														
															
																 | 
																 | 
																#else | 
																 | 
																 | 
																#else | 
															
														
														
													
														
															
																 | 
																 | 
																        XSetTransientForHint(xDisplay, xWindow, static_cast< ::Window>(winId)); | 
																 | 
																 | 
																        XSetTransientForHint(xDisplay, xWindow, static_cast< ::Window>(winId)); | 
															
														
														
													
														
															
																 | 
																 | 
																#endif | 
																 | 
																 | 
																#endif | 
															
														
														
													
												
													
														
															
																| 
																	
																		
																	
																	
																	
																 | 
																
  |