| 618 | } |
| 619 | |
| 620 | void Window::PrivateData::runAsModal(const bool blockWait) |
| 621 | { |
| 622 | DGL_DBGp("Window::PrivateData::runAsModal %i\n", blockWait); |
| 623 | startModal(); |
| 624 | |
| 625 | if (blockWait) |
| 626 | { |
| 627 | DISTRHO_SAFE_ASSERT_RETURN(appData->isStandalone,); |
| 628 | |
| 629 | while (isVisible && modal.enabled) |
| 630 | appData->idle(10); |
| 631 | |
| 632 | stopModal(); |
| 633 | } |
| 634 | else |
| 635 | { |
| 636 | appData->idle(0); |
| 637 | } |
| 638 | } |
| 639 | |
| 640 | // ----------------------------------------------------------------------- |
| 641 | // pugl events |