[mythtv-users] Changing window focus with a remote

Michael T. Dean mtdean at thirdcontact.com
Wed Sep 20 09:58:20 UTC 2006

On 09/20/06 04:06, Justin Smith wrote:

>I have MythTv 0.19 (FE + BE) installed on a Ubuntu Dapper box and 
>everything works well, except that I'd like to set up a button on the 
>remote that sets the window manager focus to the frontend.
>The reason is that I have other (non-Myth) apps on the box that 
>sometimes steal focus (generally when there is an error event).
>One way to do this might be to generate an ALT-TAB X event - but I have 
>searched the web on how to do this to no avail...
>Does anyone have any ideas?


It uses the mouse to exit and re-enter the area of the mythfrontend 
window--which, combined with mouse focus, refocuses mythfrontend.  You 
could just as easily replay an XTrap script that does an Alt-Tab.


More information about the mythtv-users mailing list