Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is a question about XFIXES #184

Open
voxsoftware opened this issue Jan 23, 2019 · 4 comments
Open

This is a question about XFIXES #184

voxsoftware opened this issue Jan 23, 2019 · 4 comments

Comments

@voxsoftware
Copy link

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

@RossComputerGuy
Copy link
Contributor

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

@voxsoftware
Copy link
Author

voxsoftware commented Jan 23, 2019

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?

@sidorares
Copy link
Owner

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.

@sidorares
Copy link
Owner

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants