title: How can I prevent Gnome from showing two windows when doing alt-tab? (c++ qt app)
body: <p><em>(see edits)</em></p>
  
  <p>I'm developing a QT/c++ application under gnome. </p>
  
  <p>The application a main window and QListBox child window. </p>
  
  <p>Both of these windows show up as separate main windows when I alt-tab away from the application. </p>
  
  <p>How can I make it so that only one window is shown when I (or later the user) uses alt-tab?</p>
  
  <p>I am guessing this behavior comes because one main window doesn't clip the subwindow - the subwindow extends the boundary of the main window. Gnome has bad alt-tab behavior for a number of other applications too, showing modal dialog boxes separately from main windows. But in the case of my app, this is really annoying. </p>
  
  <p>I am thinking I could make a giant transparent window that includes both existing windows. But it would be nicer to find a "clean" solution. </p>
  
  <p>(the most logical guess is indeed that it has something to do with window flags. I've tried every reasonable combination of flags I could think of. The window types are described <a href="http://doc.qt.nokia.com/4.6/qt.html#WindowType-enum" rel="noreferrer">here</a>)</p>
  
  <p>Edit:
  The app has a QWidget as its main window (Not QMainWindow), QListView is contained in the QWidget object and created by passing a point to the main window. 
   is styled with Qt::Tool | Qt::FramelessWindowHint. </p>
  
  <p><strong>Edit2:</strong> The Qt::X11BypassWindowManagerHint style <strong>does</strong> work to remove the window from the alt-tab list. The problem is that it also makes the window "unmanaged" so it cover the other windows. I could manaully hide whenever I lose focus - prize now for a better solution. </p>