Re: Cursor is different after set by gtk



* Beast <beast i6x org> [2005-07-18 08:45]:
After setting cursor with GDK_LEFT_PTR, the cursor is different
than previous cursor. It turn into black left_pointer which
should be white left_pointer. What could be the problem?

The problem is that you are setting the cursor to something other
than what it previously was. Unfortunately there doesnât seem to
be a way to learn which cursor was previously set.

Is there a good reason you are setting a cursor on the root
window? If not, that would be considered rude. Set the cursor on
your own window, and reset it to âundefâ when you are done (which
means the parent windowâs cursor should be used). That would
solve your problem most of the time.

Unless, of course, you have a good reason for fiddling with the
root window cursorâ

Regards,
-- 
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;



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