Re: change cursor while it is grabbed



Dennis Bjorklund <db zigo dhs org> writes:

> There does not seem to be a way to change the cursor while the pointer is 
> grabbed. In X there is a function XChangeActivePointerGrab() that one can 
> use, but it is not wrapped.
> 
> I already created a bug in bugzilla about it, someone suggested that I 
> should mail here too. I don't know how often people look at the bugs so 
> maybe it is a good idea.

Actually, I spend more time these days looking at the bugs than _not_
looking at the bugs...
 
> http://bugzilla.gnome.org/show_bug.cgi?id=69883

Here's what I said in the bug report:

  You can actually just gdk_pointer_grab() again; I believe that
  there is no semantic difference between calling GrabPointer
  again with everything the same except for the fields in
  ChangeActivePointerGrab and calling ChangeActivePointerGrab,
  though GrabPointer is a little more expensive since it is
  a round trip to the server. (ChangeActivePointerGrab has
  no return code, it just silently does nothing [if it fails].)

I put it on the 'future' milestone, but I'm not sure that it shouldn't
just be closed; the functionality is there so expanding the API
further may not be worth it just for a small efficiency win.

Regards,
                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]