sidorares/node-x11

This is a question about XFIXES

voxsoftware opened this issue · 4 comments

this client supports the method XFixesGetCursorImage?
Because i don't see in ext/fixes.js . If there is support how I can call?

Just load the extension and call FixesGetCursorImage from the object you get.

message: "fixes.FixesGetCursorImage is not a function"

the problem is that I don't see that method in ext/fixes extension. Any other way for implementing get the cursor image data?

Looks like it's missing. Do you want to try to add implementation?

Response structure from https://www.x.org/releases/X11R7.7/doc/fixesproto/fixesproto.txt


GetCursorImage

		->

		x:			INT16
		y:			INT16
		width:			CARD16
		height:			CARD16
		x-hot:			CARD16
		y-hot:			CARD16
		cursor-serial:		CARD32
		cursor-image:		LISTofCARD32

	GetCursorImage returns the image of the current cursor.  X and y are
	the current cursor position.  Width and height are the size of the
	cursor image.  X-hot and y-hot mark the hotspot within the cursor
	image.  Cursor-serial provides the number assigned to this cursor
	image, this same serial number will be reported in a CursorNotify
	event if this cursor image is redisplayed in the future.

	The cursor image itself is returned as a single image at 32 bits per
	pixel with 8 bits of alpha in the most significant 8 bits of the
	pixel followed by 8 bits each of red, green and finally 8 bits of
	blue in the least significant 8 bits.  The color components are
	pre-multiplied with the alpha component.

looks like opcode is 4 ( I hate that opcodes not included in protocol docs )

https://github.com/zwcloud/XcbSharp/blob/7d012ec64a2f5e6207da708d70856466ab35e173/xfixes.xml#L125