Package: xwrits
Version: 2.21-3
Severity: normal
Tags: patch
I use LIRC to control Mythtv via the irxevent program, which sends
synthetic xevents to x clients. Xwrits treats these as actually typing
activity, and pops up the annoybox window when I am using my remote
to watch TV.
The attached patch fixes xwrits to ignore all synthetic events.
--- xwrits.orig/rest.c 2002-05-06 19:31:11.000000000 -0500
+++ xwrits-2.21/rest.c 2005-02-27 19:33:01.000000000 -0600
@@ -15,6 +15,10 @@
if (e->type == KeyPress || e->type == MotionNotify
|| e->type == ButtonPress) {
+
+ if(e->xany.send_event) // this is a syntheitc send_event
+ return(TRAN_REST); //whatever tran_rest means it ignores the event
+
xwSUBTIME(diff, *now, last_key_time);
last_key_time = *now;
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-ck5
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages xwrits depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libice6 4.3.0.dfsg.1-10 Inter-Client Exchange library
ii libsm6 4.3.0.dfsg.1-10 X Window System Session Management
ii libx11-6 4.3.0.dfsg.1-10 X Window System protocol client li
ii libxext6 4.3.0.dfsg.1-10 X Window System miscellaneous exte
ii xlibs 4.3.0.dfsg.1-10 X Keyboard Extension (XKB) configu
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]