Open mechtifs opened 8 months ago
Consider an XDG protocol for this?
Consider an XDG protocol for this?
Sadly I can't seem to find any API that could help get the bitmap. If I missed something, feel free to point me out!
Anyway, thanks for your reply :)
Consider an XDG protocol for this?
Sadly I can't seem to find any API that could help get the bitmap. If I missed something, feel free to point me out! Anyway, thanks for your reply :)
Not an existing API, but proposing one to them!
Due to the removal of
Gdk.Cursor.get_image()
, I'm currently unable to come up a suitable solution to retrieve the cursor bitmap. However, there are still few options to choose from:Meta.CursorTracker.get_sprite()
to get aCogl.Texture
object, then convert it toGio.BytesIcon
. However, theCogl.Texture
object will be the rendered texture rather than the original bitmap (that is to say, it's with the same resolution rendered on your screen).If you have suggestions or ideas of other possibilities, feel free to comment below. PRs are always welcomed :)