Re: [LOW] STR #3424: X11: Fl_Window::default_cursor(FL_CURSOR_NONE) iterates

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [LOW] STR #3424: X11: Fl_Window::default_cursor(FL_CURSOR_NONE) iterates chris 08:05 May 20 top right image
 
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: https://www.fltk.org/str.php?L3424
Version: 1.4.0


Some more analysis:

The code before the change did not use the XCursor library to define
cursors, but used XCreatePixmapCursor or XCreateFontCursor.

The code after the change uses XcursorImageLoadCursor and as fallback if
the XCursor library is not used (HAVE_CURSOR=0) it implements only the
XCreateFontCursor method. But when the cursor type is not supported by
XCreateFontCursor (e.g. FL_CURSOR_NONE, FL_CURSOR_NWSE,..) it comes to an
endless loop. This is due the fact, that a failure of fallback_cursor() is
not handled properly in fl_cursor.cxx.

The code to create a cursor from a Pixmap that was present in the original
code has been removed completely, so there is no way to have that when not
using the XCursor library.


Link: https://www.fltk.org/str.php?L3424
Version: 1.4.0


Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2020 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.