From owner-freebsd-hackers Fri Oct 5 23:27: 0 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id 0461C37B409 for ; Fri, 5 Oct 2001 23:26:58 -0700 (PDT) Received: (qmail 28190 invoked by uid 100); 6 Oct 2001 06:26:57 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15294.42033.468134.438184@guru.mired.org> Date: Sat, 6 Oct 2001 01:26:57 -0500 To: hackers@freebsd.org Subject: Looking for sample X code. X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've got an application written for Linux that compiles and mostly works on FreeBSD. However, one feature isn't working. At one point, it wants to make the application owning a specific window think that a specific key was pressed. The original author wasn't quite sure how to do this, as witness the comment: /* I am not sure which of the following fields I have to fill in or what to fill them in with (rcy) I wouldnt be suprised if this breaks in some cases. */ Well, FreeBSD using XFree86-4 seems to be one of the cases, as debugging output shows the XSendEvent being run, but the underlying applications don't react to the key. Could an X guru provide a correct example of faking a key press event? Thanx, http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message