Bug 6683

Summary: XTEST extension ought to be implemented
Product: XCB Reporter: Jamey Sharp <jamey>
Component: ProtocolAssignee: Ian Osgood <iano>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: low CC: josh
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Proposed xtest.xml
Oops, typo.
Use XCBWINDOW and XCBCURSOR.
Um, WINDOW and CURSOR.
Conforming to 2.1 protocol document

Description Jamey Sharp 2006-04-21 05:58:50 UTC
We don't have a description of the XTEST extension yet, and we should.
Comment 1 Ian Osgood 2006-04-22 09:15:28 UTC
Created attachment 5418 [details]
Proposed xtest.xml

How's this?  What apps already use XTest that we could port?
Comment 2 Ian Osgood 2006-04-22 09:18:33 UTC
Created attachment 5419 [details]
Oops, typo.
Comment 3 Jamey Sharp 2006-04-22 11:20:06 UTC
Awesome! But I'm not sure it's quite right yet. :-/ (Would you add a URL or
other source for the XTEST protocol documentation to this bug?)

I suspect the type of 'window' should be 'WINDOW' and 'cursor' should be
'CURSOR'. I'm a bit skeptical of the FakeInput request too: perhaps FakeInput
should look more like SendEvent from the core protocol?

I haven't been the expert on describing the X protocol since we switched to XML
though, so I'm adding Josh to the CC list.
Comment 4 Ian Osgood 2006-04-23 00:47:30 UTC
Created attachment 5422 [details]
Use XCBWINDOW and XCBCURSOR.

I could not find a protocol reference.	The XTest document I found only
described the library. That's why I'm looking for a sample app to port and test
with.

I used http://cvsweb.freedesktop.org/xorg/proto/XExt/xteststr.h?rev=1.1.1.1 and
http://cvsweb.freedesktop.org/xorg/lib/Xtst/src/XTest.c?rev=1.2 as my guide.
Comment 5 Ian Osgood 2006-04-23 01:20:15 UTC
Created attachment 5423 [details]
Um, WINDOW and CURSOR.
Comment 6 Ian Osgood 2006-04-23 02:44:51 UTC
Created attachment 5425 [details]
Conforming to 2.1 protocol document

OK, I did find a protocol spec for XTest 2.1: 
http://ftp.xfree86.org/pub/XFree86/4.5.0/doc/xtest.txt
Comment 7 Ian Osgood 2006-04-25 07:20:42 UTC
I found and ported a test app (xte), convincing me that this description is workable. The app and 
description are committed.
Comment 8 Josh Triplett 2006-04-27 03:38:40 UTC
I've committed changes to actually build a libXCBxtest library.

git commit 498bf348b7032e05c4bf625628e8d78dd94de3d2
Comment 9 Ian Osgood 2006-04-27 03:52:35 UTC
Oops, I'd already done that. Forgot the -a parameter for git-commit. Pushed.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.