bug-xnee
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-xnee] [bug #24478] bad timing in --retype-file makes repeated key i


From: anonymous
Subject: [Bug-xnee] [bug #24478] bad timing in --retype-file makes repeated key ignored in some apps
Date: Tue, 07 Oct 2008 13:40:11 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.9 (like Gecko)

URL:
  <http://savannah.gnu.org/bugs/?24478>

                 Summary: bad timing in --retype-file makes repeated key
ignored in some apps
                 Project: Xnee
            Submitted by: None
            Submitted on: Tue 07 Oct 2008 01:40:06 PM UTC
                Category: cnee
                Severity: 3 - Normal
              Item Group: Error report
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

it presses the key, wait, then release it and immediately press the next (in
loop)

In some apps whe two same characters are immediately after each other it does
not leave time to recognize it as two chars - it displays only one (hello ->
helo)

Solution is simple - wait before AND after the keystroke (i made it also
little faster for me - maybe you want to use 1000*50 to have it the same):


diff -ur ./libxnee/src/xnee_fake.c ../Xnee-3.01/libxnee/src/xnee_fake.c
--- ./libxnee/src/xnee_fake.c   2007-06-28 16:11:24.000000000 +0200
+++ ../Xnee-3.01/libxnee/src/xnee_fake.c        2008-10-07 14:28:10.000000000
+0200
@@ -539,8 +539,10 @@
                         tmp[i],xss.kc.kc));
          
          xnee_fake_key_mod_event (xd, &xss, XNEE_PRESS, 0);
-         usleep (1000*100);
+         usleep (1000*10);
          xnee_fake_key_mod_event (xd, &xss, XNEE_RELEASE, 0);
+         usleep (1000*10);
          
          
        }


(reported by address@hidden - feel fre to ask me more )




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?24478>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]