# OSX, Reaper: ModalDialog behind plugin Window

**URL:** <https://forum.juce.com/t/osx-reaper-modaldialog-behind-plugin-window/10345>\
**Category:** Audio Plugins\
**Created:** [April 24, 2013, 11:19am UTC](https://forum.juce.com/t/osx-reaper-modaldialog-behind-plugin-window/10345 "2013-04-24T11:19:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrickkunz](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@patrickkunz](https://forum.juce.com/u/patrickkunz)\
**Post date:** [April 24, 2013, 11:19am UTC](https://forum.juce.com/t/osx-reaper-modaldialog-behind-plugin-window/10345/1 "2013-04-24T11:19:17Z")

</div>

Hi together,  
the modal dialog shows up behind the plugin window since i updated to the latest tip. I have this issue on my OSX 10.6.8 system using the latest Reaper Host (4.33). VST 32/64 and AU 32/64 plugins are affected. It works with Ableton Live and AU Lab.

I use following code to open the dialog:

```auto

```

This worked with a few months older JUCE tip. Did i miss anything? Any help would be great.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 24, 2013, 12:15pm UTC](https://forum.juce.com/t/osx-reaper-modaldialog-behind-plugin-window/10345/2 "2013-04-24T12:15:42Z")

</div>

Using modal dialogs in plugins is Very Dangerous - don’t do it!!

Reaper might use always-on-top windows, in which case you may need to setAlwaysOnTop to force your window to the front.

---

<div class="post-metadata">

**Author:** ![patrickkunz](https://avatars.discourse-cdn.com/v4/letter/p/73ab20/32.png) [@patrickkunz](https://forum.juce.com/u/patrickkunz)\
**Post date:** [April 24, 2013, 12:23pm UTC](https://forum.juce.com/t/osx-reaper-modaldialog-behind-plugin-window/10345/3 "2013-04-24T12:23:17Z")

</div>

[quote=“jules”]Using modal dialogs in plugins is Very Dangerous - don’t do it!!

Reaper might use always-on-top windows, in which case you may need to setAlwaysOnTop to force your window to the front.[/quote]

Thanks for the info. I will look for a work around.
