cursors and input
Jim Gettys
Jim.Gettys at hp.com
Tue Mar 15 07:38:54 PST 2005
I'm beginning to wonder if cursors should be present at all, or left to
the X server to composite on its own....
Again, I'm thinking about multiple user cases, and multiple input
devices.
The concept that there is only a single cursor in X is arguably a bug,
and that having single hardware cursor support isn't more than an
optimization.
So I wonder if cursors exist at all, if the interface should have
support for multiple cursors/sprites...
- Jim
On Tue, 2005-03-15 at 08:31 -0700, Brian Paul wrote:
> Jon Smirl wrote:
> > On Tue, 15 Mar 2005 07:50:48 -0700, Brian Paul
> > <brian.paul at tungstengraphics.com> wrote:
> >
> >>Alex Deucher wrote:
> >>
> >>>How do we want to handle cursors in EGL?
> >>
> >>I expect another EGL extension would be made for that.
> >
> >
> > Do you need another extension? Aren't cursors and intergral part of a screen?
>
> I'd rather layer an EGL_MESA_cursor extension on top of the
> EGL_MESA_screen_surface extension than make it an integral part of it
> since there are devices that don't have/need cursors.
>
> But cursors would be per-screen information, so you'd have queries like:
>
> eglQueryScreenMESA(dpy, scrn, EGL_MAX_CURSOR_WIDTH, &width);
> eglQueryScreenMESA(dpy, scrn, EGL_MAX_CURSOR_HEIGTH, &height);
>
> And maybe set the position with:
>
> EGLint pos[2] = { x, y };
> eglScreenAttribsMESA(dpy, scrn, EGL_CURSOR_POSITION, pos);
>
> Or, maybe a new function, such as:
>
> eglCursorPositionMESA(dpy, scrn, x, y);
>
> -Brian
> _______________________________________________
> dri-egl mailing list
> dri-egl at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-egl
More information about the dri-egl
mailing list