| 278 | // bring view window into the foreground, aka "raise" window |
| 279 | |
| 280 | void puglRaiseWindow(PuglView* const view) |
| 281 | { |
| 282 | // this does the same as puglShow(view, PUGL_SHOW_FORCE_RAISE) + puglShow(view, PUGL_SHOW_RAISE) |
| 283 | #if defined(DISTRHO_OS_HAIKU) |
| 284 | #elif defined(DISTRHO_OS_MAC) |
| 285 | NSWindow* const window = [view->impl->wrapperView window]; |
| 286 | [window orderFrontRegardless]; |
| 287 | [window orderFront:view->impl->wrapperView]; |
| 288 | #elif defined(DISTRHO_OS_WASM) |
| 289 | // nothing |
| 290 | #elif defined(DISTRHO_OS_WINDOWS) |
| 291 | SetForegroundWindow(view->impl->hwnd); |
| 292 | SetActiveWindow(view->impl->hwnd); |
| 293 | #elif defined(HAVE_X11) |
| 294 | XRaiseWindow(view->world->impl->display, view->impl->win); |
| 295 | #endif |
| 296 | } |
| 297 | |
| 298 | // -------------------------------------------------------------------------------------------------------------------- |
| 299 | // Combined puglSetSizeHint using PUGL_MIN_SIZE and PUGL_FIXED_ASPECT |