Subject: How to draw a cursor in Mir client side?

From: Leslie Zhai <[email-masked]>
Date: Wed, 10 Jul 2013 16:49:49 +0800

Hi Mir developers,

I experienced Mir demo_server.cpp rendering a red cursor to show where
the mouse cursor is.
But I do not know how to draw a cursor in client side for
gdkcursor-mir.c Gtk Mir backend.
Is there some client API to deal with cursor theme such as Wayland?

Thanks a lot!

---

From: Alan Griffiths <[email-masked]>
Date: Wed, 10 Jul 2013 09:58:20 +0100

> Is there some client API to deal with cursor theme such as Wayland?

Hi Mir user,

we're not currently supporting selecting hardware cursors client side. I
suspect that any support for that will be controlled via the shell
(rather than directly by Mir).

HTH

Alan

---

From: Daniel van Vugt <[email-masked]>
Date: Wed, 10 Jul 2013 16:58:52 +0800

Leslie,

We don't yet have a client API for changing the cursor. I think we 
discussed it but can't find the plans documented officially. Just stub 
it and let GTK pretend that the cursor has changed.

You can see the same issue is blocking XMir:
[raof] XMir hardware cursor support: BLOCKED
https://blueprints.launchpad.net/ubuntu/+spec/client-1310-mir-xmir

Does anyone know where the work item is or should be?

- Daniel

---

From: Kevin Gunn <[email-masked]>
Date: Wed, 10 Jul 2013 12:45:53 -0500

we had some related workitems, but rather generic - i've specifically added
"client support for cursor changing" here
https://blueprints.launchpad.net/ubuntu/+spec/client-1303-mir-converged

On Wed, Jul 10, 2013 at 3:58 AM, Daniel van Vugt <
[email-masked]> wrote:

> discussed it but can't find the plans documented officially. Just stub it
> and let GTK pretend that the cursor has changed.
>
> https://blueprints.launchpad.**net/ubuntu/+spec/client-1310-**mir-xmir<https://blueprints.launchpad.net/ubuntu/+spec/client-1310-mir-xmir>
>
> --
> Mir-devel mailing list
> [email-masked]
> Modify settings or unsubscribe at: https://lists.ubuntu.com/**
> mailman/listinfo/mir-devel<https://lists.ubuntu.com/mailman/listinfo/mir-devel>
>