title: Getting gui dialog pop-ups (from bash) to stay on top of other windows
body: <p>I posted this on the <a href="https://groups.google.com/forum/?fromgroups=#!topic/yad-common/qu_gEwN17M4" rel="nofollow">yad list</a>, apparently with invisibility enabled (nobody's even viewed it! - usually, the list is very responsive.), so I thought I'd see if any of you have some ideas. It probably applies to any bash script using any gui pop-up utility such as dialog, xdialog, or zenity with the KDE desktop.</p>
  
  <p>In general, I love yad. It blows away zenity and the developer is usually right there to answer questions and fix/enhance things.</p>
  
  <p>Essentially, I have a set of scripts that use pop-up gui dialogs for interaction with the user.</p>
  
  <p>It works great until you click the mouse anywhere else on the KDE desktop while one of the pop-ups is displayed.</p>
  
  <p>Once you do that, all subsequent dialogs "appear" behind everything else and are usually invisible except for in the taskbar and have to be manually selected from there to become visible/active/focused again.</p>
  
  <p>Is there a way to fix this? I assume it's a desktop and not a yad problem.</p>
  
  <p>Thanks,</p>
  
  <p>Joe
  kubuntu precise 64-bit (KDE 4.8.5)</p>
  
  <hr>
  
  <p>My <a href="https://sourceforge.net/projects/duplexpr/" rel="nofollow">duplex</a> printing system, written in bash, makes multiple calls to yad from within one (possibly nested) script. It works great, but has one major problem.</p>
  
  <p>If the user clicks the mouse anywhere outside a yad dialog while the script is running and displaying something with yad, all subsequent yad dialogs appear behind everything else and are essentially invisible.</p>
  
  <p>The script still shows up in the task manager, so these dialogs can be brought back to the foreground one by one, but it's really counter-intuitive and annoying.</p>
  
  <p>I assume this is a "feature" of KDE and not a bug in yad.
  Is there any way to fix/prevent this? I tried adding --on-top to the dialogs, but it didn't help.</p>
  
  <p>When I'm running the script (which may take awhile, or I may want to do something else while a dialog is waiting for input), I can't do anything else for fear of having this problem occur. I can switch to another desktop, but that's dodgy because the next dialog (but only that one) may pop up there and throw the whole thing off.
  I'm using the latest yad from the ppa on kubuntu precise.</p>