Hello,
I am running DirectFB 1.4.3 trough X11 (system=X11 in my .directfbrc) and I
noticed something undesirable in the WarpCursor behaviour.

In my code I have:

        ...
        IDirectFBDisplayLayer  *layer;
        DFBCHECK(dfb->GetDisplayLayer( dfb, DLID_PRIMARY, &layer ));
        DFBCHECK (layer->SetCooperativeLevel(layer, DLSCL_ADMINISTRATIVE));
        ...


With that layer->GetCursorPosition and other methods
of IDirectFBDisplayLayer works just fine. layer->WarpCursor also works, but
the following is happening:
- Mouse is in x=10, y=10
- GetCursorPosition returns 10,10 just fine
- If I run WarpCursor(layer, 50, 50) I can see my mouse cursor pointer
moving to 50, 50

Until now everything is just fine, but after that If I move my mouse, it
moves relatively to 10,10 (where it was before the WarpCursor). For example,
after doing my WarpCursor to 50, 50, if I move my mouse 1 pixel to the right
side and 1 pixel down, my new position will be 11, 11, making my mouse
pointer jump back to where it was.

Is that the right behavior or am I doing something wrong?

I want to move the cursor point with WarpCursor to 50, 50 and when the user
move it to the right side it should go to 51, 50 and not to 11, 50.

Thanks,
--
Fernando Brito
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to