[mythtv] Window focus problems (was: Using KDE Window Manager, how to remove toolbars)

Cedar McKay cedarmckay at mac.com
Sat Mar 1 09:49:10 EST 2003


On Saturday, March 1, 2003, at 08:53  AM, Brent Borghese wrote:

> I have the same focus problem with lirc.
>
> I am using the CVS from Jan 18, and for about 3 weeks every thing 
> worked
> fine. But, about a week ago the focus problem came back.
>
> I know it sounds hard to believe, but I have done nothing to the box 
> and
> the problem started up again.
>

as I showed before, this is a time based bug. Not there in late 2002, 
there for early part of jan, not there for most of jan, then back 
again. Making me crazy.

> Temporary, the way I have got around the problem is to have my remote 
> run
> xmessage and it would pop-up a window for a second and when the window
> closes the focus go back to the list box in myth.
>
> Here is what I have in my .lircrc file:
>
> begin
>     prog = irexec
>     button = Help
>     config = xmessage -timeout 1 "Wait"
> end
>
> Make sure you have irexec running.
>
>
> Brent
>
>
>
>>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
>
> On 2/27/03, 2:01:52 AM, Michael "D." Cencula <mythtvuser at cencula.com> 
> wrote
> regarding [mythtv]  Window focus problems (was: Using KDE Window 
> Manager,
> how to remove toolbars):
>
>
>> I've done some more looking into this trying to understand the 
>> behavior
> and
>> here's what I've found.  Mythtv works fine and there are no focus 
>> issues
> when
>> using the keyboard only.  Using lirc, however, gives the following
> results:
>
>> Use remote to select "watch recordings" -> brings up the "Select a
> recording
>> to view" dialog.
>> Use remote to select a recording and start watching it.
>> Use remote to exit recording (irxevent sends an Escape to 
>> CurrentWindow).
>
>> at this point, the "Select a recording to view" dialog is in front, 
>> but
> it
>> does not have the focus.  This is evident by the column headings 
>> titled
>> "Date" and "Title" are a subdued shade of blue...not the bright blue 
>> when
> the
>> window is focused.  If I hit the up and down arrows on the keyboard, 
>> the
>> selection bar will move from program to program...but the up and down
> arrows
>> on the remote do nothing.  Also, if I hit alt-tab once, the 
>> application
>> selector that pops up in the middle of the screen will highlight
>> mythfrontend<2>, which is the "Select a recording to view" dialog.  
>> That
>> tells me that the other window named mythfrontend was active until I 
>> hit
>> alt-tab.  When I release the alt-tab, the "Date" and "Title" column
> headings
>> become bright blue and the remote works in this dialog once more.
>
>> Here's some speculation from a non-programmer:
>> I've looked at the irxevent code and it seems to use some functions 
>> like
>> XGetInputFocus() to find out what window to send the keypress 
>> characters
> to.
>> Since the MythTV menu window (Watch TV, Schedule a Recording, Watch
>> Recordings, etc) has the same name as the "Select a recording to view"
> dialog
>> (they're both called mythfrontend), I wonder if lirc (irxevent, 
>> actually)
> is
>> selecting the wrong window to send the kepress characters to.  If so,
> could
>> this problem be solved by changing the name of the "Select a 
>> recording to
>> view" dialog?
>
>> If I knew more about programming, I'd try to make some code changes to
> test
>> this theory out, but unfortunately I'm not that proficient.
>
>> Let me know if I can do anything else to help track this down.
>
>> Mike
>
>> On Wednesday 26 February 2003 22:43, Michael D. Cencula wrote:
>>> I've got this same problem in KDE 3.0 using the click to focus 
>>> method.
>>>
>>> On Monday 24 February 2003 00:42, David Madsen wrote:
>>>> Using focus policy 'Click to Focus'.  AFAIK that is the correct 
>>>> method to
>>>> use right?
>>>>
>>>> Dave Madsen
>>>>
>>>> ----- Original Message -----
>>>> From: "Isaac Richards" <ijr at po.cwru.edu>
>>>> To: "Discussion about mythtv" <mythtv-users at snowman.net>
>>>> Sent: Sunday, February 23, 2003 2:59 PM
>>>> Subject: Re: [mythtv-users] Using KDE Window Manager, how to remove
>>>> toolbars
>>>>
>>>>> On Sunday 23 February 2003 02:23 pm, David Madsen wrote:
>>>>>> Thats really strange.. I have this exact problem with KDE. ;)  
>>>>>> After
>>>>>> watching a video, and exiting using the remote, the mythfrontend 
>>>>>> that
>>>>
>>>> lists
>>>>
>>>>>> all the shows is now longer in focus.  What ver of KDE are you
>>>>>> running? Maybe that might be the difference, since i'm running KDE
>>>>>> 2.2 from the debian unstable release..
>>>>>
>>>>> Using what focus method?
>>>>>
>>>>> Isaac
>>>>>
>>>>> _______________________________________________
>>>>> mythtv-users mailing list
>>>>> mythtv-users at snowman.net
>>>>> http://www.snowman.net/mailman/listinfo/mythtv-users
>>>>
>>>> _______________________________________________
>>>> mythtv-users mailing list
>>>> mythtv-users at snowman.net
>>>> http://www.snowman.net/mailman/listinfo/mythtv-users
>>>
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users at snowman.net
>>> http://www.snowman.net/mailman/listinfo/mythtv-users
>
>
>> _______________________________________________
>> mythtv-dev mailing list
>> mythtv-dev at snowman.net
>> http://www.snowman.net/mailman/listinfo/mythtv-dev
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev



More information about the mythtv-dev mailing list