Ernesto Domato | 5 Jun 01:57

AG_BindGlobalKey doesn't work well on my Gnome session

I was trying the demos with agar and I discovered that for example the ESCAPE key is not working (exiting the application) as it should do on my Gnome session. Anyway, I know that this is not an Agar problem but something with my Gnome session configuration because running the demos on another session of Gnome (with a different user) it works as expected.

Can anyone point me out where to look to solve this problem? :-)

Thanks.
Ernesto

_______________________________________________
Agar mailing list
Agar@...
http://libagar.org/lists.html
Julien Nadeau | 5 Jun 10:41
Favicon

Re: AG_BindGlobalKey doesn't work well on my Gnome session

On Wed, Jun 04, 2008 at 09:00:10PM -0300, Ernesto Domato wrote:
> I was trying the demos with agar and I discovered that for example the
> ESCAPE key is not working (exiting the application) as it should do on my
> Gnome session. Anyway, I know that this is not an Agar problem but something
> with my Gnome session configuration because running the demos on another
> session of Gnome (with a different user) it works as expected.
> 
> Can anyone point me out where to look to solve this problem? :-)

Is it possible that you had your caps key on when this occured? It seems
AG_BindGlobalKey() was doing an exact comparison on the key modifiers.
I've just fixed this in subversion, it is now ANDing the modifiers instead.
Ernesto Domato | 5 Jun 17:35

Re: AG_BindGlobalKey doesn't work well on my Gnome session

On Thu, Jun 5, 2008 at 5:41 AM, Julien Nadeau <vedge-xWq8P/a1moLx9BLsLxWUfA@public.gmane.org> wrote:

On Wed, Jun 04, 2008 at 09:00:10PM -0300, Ernesto Domato wrote:
> I was trying the demos with agar and I discovered that for example the
> ESCAPE key is not working (exiting the application) as it should do on my
> Gnome session. Anyway, I know that this is not an Agar problem but something
> with my Gnome session configuration because running the demos on another
> session of Gnome (with a different user) it works as expected.
>
> Can anyone point me out where to look to solve this problem? :-)

Is it possible that you had your caps key on when this occured? It seems
AG_BindGlobalKey() was doing an exact comparison on the key modifiers.
I've just fixed this in subversion, it is now ANDing the modifiers instead.

Well, that was the problem but in my case was with the numlock key. My session starts with that key on and on the other session starts with that key off.

Thanks.
_______________________________________________
Agar mailing list
Agar@...
http://libagar.org/lists.html
Ernesto Domato | 6 Jun 06:59

Re: AG_BindGlobalKey doesn't work well on my Gnome session

On Thu, Jun 5, 2008 at 12:35 PM, Ernesto Domato <edomat-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

On Thu, Jun 5, 2008 at 5:41 AM, Julien Nadeau <vedge-xWq8P/a1moLx9BLsLxWUfA@public.gmane.org> wrote:
On Wed, Jun 04, 2008 at 09:00:10PM -0300, Ernesto Domato wrote:
> I was trying the demos with agar and I discovered that for example the
> ESCAPE key is not working (exiting the application) as it should do on my
> Gnome session. Anyway, I know that this is not an Agar problem but something
> with my Gnome session configuration because running the demos on another
> session of Gnome (with a different user) it works as expected.
>
> Can anyone point me out where to look to solve this problem? :-)

Is it possible that you had your caps key on when this occured? It seems
AG_BindGlobalKey() was doing an exact comparison on the key modifiers.
I've just fixed this in subversion, it is now ANDing the modifiers instead.

Well, that was the problem but in my case was with the numlock key. My session starts with that key on and on the other session starts with that key off.

Thanks.


I tried the SVN version (updated tonight) and I have the same behavior. The weird thing is that it only happens when you start the application with one (or more) of the modifiers keys on. If you start the application with all the keys turned off and the turn on one (or more) keys, the ESCAPE key works fine (it exits the application).

Thanks.
Ernesto
_______________________________________________
Agar mailing list
Agar@...
http://libagar.org/lists.html
Julien Nadeau | 7 Jun 06:46
Favicon

Re: AG_BindGlobalKey doesn't work well on my Gnome session

On Fri, Jun 06, 2008 at 01:59:29AM -0300, Ernesto Domato wrote:
> On Thu, Jun 5, 2008 at 12:35 PM, Ernesto Domato <edomat@...> wrote:
> 
> > On Thu, Jun 5, 2008 at 5:41 AM, Julien Nadeau <vedge@...>
> > wrote:
> >
> >> On Wed, Jun 04, 2008 at 09:00:10PM -0300, Ernesto Domato wrote:
> >> > I was trying the demos with agar and I discovered that for example the
> >> > ESCAPE key is not working (exiting the application) as it should do on
> >> my
> >> > Gnome session. Anyway, I know that this is not an Agar problem but
> >> something
> >> > with my Gnome session configuration because running the demos on another
> >> > session of Gnome (with a different user) it works as expected.
> >> >
> >> > Can anyone point me out where to look to solve this problem? :-)
> >>
> >> Is it possible that you had your caps key on when this occured? It seems
> >> AG_BindGlobalKey() was doing an exact comparison on the key modifiers.
> >> I've just fixed this in subversion, it is now ANDing the modifiers
> >> instead.
> >
> >
> > Well, that was the problem but in my case was with the numlock key. My
> > session starts with that key on and on the other session starts with that
> > key off.
> >
> > Thanks.
> 
> 
> I tried the SVN version (updated tonight) and I have the same behavior. The
> weird thing is that it only happens when you start the application with one
> (or more) of the modifiers keys on. If you start the application with all
> the keys turned off and the turn on one (or more) keys, the ESCAPE key works
> fine (it exits the application).

Sorry, I've forgot to actually commit the change. It is in svn now.

Gmane