Only key press event?

6 views
Skip to first unread message

Jhoanir Torres

unread,
Apr 25, 2009, 9:40:02 PM4/25/09
to amora...@googlegroups.com, amora...@googlegroups.com
Hello;

I have problems with some functions at impressive
(http://impressive.sourceforge.net). Amora only send press event with
Return, F, Esc, etc. key's.

Can you make the change in the code including key release event too?

Thanks in advance

## F KEY#######################
----- Keyboard event ---------
KeyPress event, serial 31, synthetic YES, window 0x3200001,
root 0x6a, subw 0x0, time 360459, (0,0), root:(0,37),
state 0x0, keycode 41 (keysym 0x66, f), same_screen YES,
XLookupString gives 1 bytes: (66) "f"
XmbLookupString gives 1 bytes: (66) "f"
XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x3200001,
root 0x6a, subw 0x0, time 33635491, (0,79), root:(1005,697),
state 0x0, keycode 41 (keysym 0x66, f), same_screen YES,
XLookupString gives 1 bytes: (66) "f"
XmbLookupString gives 1 bytes: (66) "f"
XFilterEvent returns: False
----- Keyboard event ---------

----- Amora client event ---------
KeyRelease event, serial 34, synthetic NO, window 0x3200001,
root 0x6a, subw 0x0, time 33635547, (0,79), root:(1005,697),
state 0x0, keycode 41 (keysym 0x66, f), same_screen YES,
XLookupString gives 1 bytes: (66) "f"
XFilterEvent returns: False
----- Amora client event ---------

## Return KEY#######################
----- Keyboard event ---------
KeyPress event, serial 34, synthetic NO, window 0x3200001,
root 0x6a, subw 0x0, time 33699964, (5,37), root:(1010,655),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
" XmbLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
root 0x6a, subw 0x0, time 33700092, (5,37), root:(1010,655),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False
----- Keyboard event ---------

----- Amora client event ---------
KeyPress event, serial 34, synthetic YES, window 0x3200001,
root 0x6a, subw 0x0, time 111463, (0,0), root:(0,36),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
" XmbLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False
----- Amora client event ---------

## ESC KEY#######################

----- Keyboard event ---------
KeyPress event, serial 34, synthetic NO, window 0x3200001,
root 0x6a, subw 0x0, time 33765054, (3,14), root:(1008,632),
state 0x0, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
XLookupString gives 1 bytes: (1b) "
mbLookupString gives 1 bytes: (1b) "
FilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x3200001,
root 0x6a, subw 0x0, time 33765158, (3,14), root:(1008,632),
state 0x0, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
XLookupString gives 1 bytes: (1b) "
FilterEvent returns: False
----- Xenv event ---------

----- Amora client event ---------
KeyPress event, serial 34, synthetic YES, window 0x3200001,
root 0x6a, subw 0x0, time 858478, (0,0), root:(0,36),
state 0x0, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
XLookupString gives 1 bytes: (1b) "
mbLookupString gives 1 bytes: (1b) "
FilterEvent returns: False
----- Amora event ---------

--
Jhoanir Torres

Adenilson Cavalcanti

unread,
May 22, 2009, 8:14:33 AM5/22/09
to amora...@googlegroups.com, amora...@googlegroups.com
Dear Jhoanir Torres

Sorry about the lonnnng delay to answer.

Yes, you are right, amora server was not sending the release key event
(mostly because in the applications that I tested it made no
difference).

Commit r655 has the fix:
Index: src/amora.c
===================================================================
--- src/amora.c (revision 654)
+++ src/amora.c (working copy)
@@ -149,6 +149,7 @@

if (result != NONE) {
send_event(KeyPress, x_key_code[result], amora->display);
+ send_event(KeyRelease, x_key_code[result], amora->display);
goto exit;
}


If you could please test it and report back?


Best regards


Adenilson

Jhoanir Torres

unread,
May 22, 2009, 5:31:03 PM5/22/09
to amora...@googlegroups.com, amora...@googlegroups.com
On Sat, May 23, 2009 at 7:44 AM, Adenilson Cavalcanti
<caval...@gmail.com> wrote:
>
> Dear Jhoanir Torres
>
> Sorry about the lonnnng delay to answer.
>
> Yes, you are right, amora server was not sending the release key event
> (mostly because in the applications that I tested it made no
> difference).
>
> Commit r655 has the fix:
> Index: src/amora.c
> ===================================================================
> --- src/amora.c (revision 654)
> +++ src/amora.c (working copy)
> @@ -149,6 +149,7 @@
>
>        if (result != NONE) {
>                send_event(KeyPress, x_key_code[result], amora->display);
> +               send_event(KeyRelease, x_key_code[result], amora->display);
>                goto exit;
>        }
>
>
> If you could please test it and report back?

Yeah, it's OK now.

Can you make the binary and generate the debian sid package?

Thank you XD
--
Jhoanir Torres

Adenilson Cavalcanti

unread,
May 23, 2009, 12:09:42 PM5/23/09
to amora...@googlegroups.com, amora...@googlegroups.com
Dear Jhoanir

I could generate de debian packages but I will not.

The reason is that amora was officially included in Debian and (and by
consequence in ubuntu too).

Im planning to make the next public release in the upcoming weeks.


Best regards


Adenilson

Axel Beckert

unread,
May 23, 2009, 5:03:35 PM5/23/09
to amora...@googlegroups.com, amora...@googlegroups.com, Jhoanir Torres
Hi,

On Sat, May 23, 2009 at 05:01:03PM +1930, Jhoanir Torres wrote:
> Can you make the binary and generate the debian sid package?

Just a short "pong", because I'm currently on the Linux User Group
Camp behind a several kilometres WLAN and then small bandwidth DSL
(768 kBit/s :-) connection shared between around people.

I can build pre-release packages if wanted. As soon as it's officially
released (or it's sure that no more changes will be made), I'll
prepare the upload to Debian Sid.

Regards, Axel
--
Axel Beckert - a...@deuxchevaux.org, a...@noone.org - http://noone.org/abe/

Jhoanir Torres

unread,
May 23, 2009, 7:18:40 PM5/23/09
to Axel Beckert, amora...@googlegroups.com, amora...@googlegroups.com
On Sun, May 24, 2009 at 4:33 PM, Axel Beckert <a...@deuxchevaux.org> wrote:
> Hi,
>
> On Sat, May 23, 2009 at 05:01:03PM +1930, Jhoanir Torres wrote:
>> Can you make the binary and generate the debian sid package?
>
> Just a short "pong", because I'm currently on the Linux User Group
> Camp behind a several kilometres WLAN and then small bandwidth DSL
> (768 kBit/s :-) connection shared between around people.
>
> I can build pre-release packages if wanted. As soon as it's officially
> released (or it's sure that no more changes will be made), I'll
> prepare the upload to Debian Sid.

Great!!! and happy BarCamp

>
>                Regards, Axel
> --
> Axel Beckert - a...@deuxchevaux.org, a...@noone.org - http://noone.org/abe/
>

--
Jhoanir Torres

Reply all
Reply to author
Forward
0 new messages