title: X11 Window Loses Active State of the Qt Window
body: <p>I have a fairly simple Application: QMainWindow with a QLineEdit and a popup menu in QMenuBar.<br/>The Application in running on a Yocto Generic Linux with no Window Manager.<br/>I am also writing a fairly simple Window Manager.</p>
  <p>The <strong>Problem</strong> is whenever I click the MenuBar and the Popup Menu appears with multiple entries and I click away from it on the QMainWindow the Popup menu closes but the <strong>QMainwindow is not the Active Window anymore</strong>.<br/>eg. The QLineEdit does not have a <strong>Blinking Cursor</strong> (Although I can type into it) and I have to <strong>Click the QMainWindow one more time</strong> to Activate the Window and have a blinking cursor.<br/><br/>This is not the behaviour on Ubuntu or Windows Desktop, I dont have to click one more time to make the QMainwindow the active window</p>