[mythtv-commits] mythtv commit: r20405 - in trunk/mythtv/libs by danielk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Fri Apr 17 13:34:44 UTC 2009

      Author: danielk
        Date: 2009-04-17 13:34:43 +0000 (Fri, 17 Apr 2009)
New Revision: 20405
   Changeset: http://cvs.mythtv.org/trac/changeset/20405




Fix focus issue observed with Ubuntu jaunty.

Note: Not everyone sees the focus issue, but a few do.. It appears to be due to show() not always immediately mapping the window in X11. This listenes for the Qt show event and adds a post-show event to the queue when it is seen. Qt appears to reliably not process that post-show event until after the X11 map has really taken place, so we then handle that event by calling raise and activateWindow() to request focus.

It is still possible that we will not be granted focus when we ask for it (due to window manager focus policy), but this change tries to assure that we do ask for focus only after it is possible for the window manager to give us focus.

More information about the mythtv-commits mailing list