In the year 2014, of the month of May, on the 12th day, Marc MERLIN wrote:
> On Mon, May 12, 2014 at 02:07:30AM +1000, Dave wrote:
> >  I had a little look at the enlightenment source code to try and figure this
> > out, half as an excuse to start learning about the code for enlightenment.
> > 
> >  I traced the problem down as far as the e_bindings_mouse_button_find
> > function.  Normally, the left Alt key returns a modifier value of 4 (Alt).
> > When the right Alt key is set to Mode_switch, the left Alt key returns a
> > modifier value of 20 (Alt+AltGr).  Hence it doesn't match the configured
> > binding parameters for windows resizing, and you get no action.
>  
> Aaah, very interesting.
> 
> >  Further than that, the problem seems to reside in evas or ecore_input_evas 
> > .
> > If I get some spare time in the next few days, I'll try prying into the
> > source code for those libs to see if I can uncover anything interesting
> > there.
> 
> Thanks much for looking.
> So since this used to work in e17, is it maybe easier to look at what
> changed between the two to find when it broke?
> 

 It's actually more work to sift through the changes.  Too many of them.
Besides, since this is an exercise for me to learn the source code, it's more
beneficial for me to follow the codepath and see what's happening.

 I've come up with a fix for the problem.  The issue resides in EFL, not in
the Enlightenment source.

 In the EFL source tree, edit the src/lib/ecore_x/xlib/ecore_x.c file, and
comment out the following line:
   ECORE_X_MODIFIER_ALTGR = _ecore_x_key_mask_get(XK_Mode_switch)

 It's not root cause of the issue, but it'll fix things for you.  It will
also break the AltGr key, for those that have keyboards with it.  Yep,
there's always a compromise.

 Cheers,
 dave.k


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to