[mythtv] [PATCH] Fix for unaccepted key stack smashing

Joseph A. Caputo jcaputo1 at comcast.net
Mon May 16 21:25:07 UTC 2005


On Wednesday 11 May 2005 17:06, Micah F. Galizia wrote:
> Hello all,
> 
> I've attached a patch that accepts all key events by default.  This
> fixes a problem where "unaccepted" keys would crash myth.
> 
> More specifically, if your input device is setup to raise X multimedia
> keys, they will in turn raise QKeyEvents for keys like "Volume Down" 
> or 
> "Media Play."  These key events are raised with their accept flag 
> unset. 
> The unaccepted events are sent to the appropriate widget, and work 
> back 
> through the widgets which contain them until MythMainWindow receives 
> the 
> event (again), and sends it back out.  This keeps stack smashing until
> myth dies.

Thanks for this... I'd had something along these lines in my tree for a 
while, but it would occasionally crash, and I hadn't had the 
opportunity to track it down.  I'm looking forward to using this!

-JAC


More information about the mythtv-dev mailing list