Increased error tolerance when dealing with nonexistent keysyms.
Increased error tolerance when dealing with nonexistent keysyms.

The keysym_to_keycode method will raise a KeyError when handling an
out-of-range keysym. In my setup, this happens when I try to establish
a remote session from OS X.
I'm not sure about the why, but I think it's a good idea to make qtile
more tolerant to that kind of errors.

I added a bounds-check that returns zero when it encounters a
nonexistent keysym.

farebord/qtile,kynikos/qtile,aniruddhkanojia/qtile,nxnfufunezn/qtile,cortesi/qtile,himaaaatti/qtile,EndPointCorp/qtile,StephenBarnes/qtile,qtile/qtile,nxnfufunezn/qtile,de-vri-es/qtile,qtile/qtile,apinsard/qtile,frostidaho/qtile,de-vri-es/qtile,zordsdavini/qtile,w1ndy/qtile,kseistrup/qtile,kseistrup/qtile,kopchik/qtile,soulchainer/qtile,StephenBarnes/qtile,apinsard/qtile,rxcomm/qtile,kynikos/qtile,kiniou/qtile,farebord/qtile,w1ndy/qtile,andrewyoung1991/qtile,encukou/qtile,ramnes/qtile,soulchainer/qtile,cortesi/qtile,xplv/qtile,encukou/qtile,xplv/qtile,kiniou/qtile,jdowner/qtile,EndPointCorp/qtile,kopchik/qtile,frostidaho/qtile,himaaaatti/qtile,aniruddhkanojia/qtile,zordsdavini/qtile,andrewyoung1991/qtile,jdowner/qtile,tych0/qtile,dequis/qtile,rxcomm/qtile,ramnes/qtile,dequis/qtile,flacjacket/qtile,flacjacket/qtile,tych0/qtile