[vtk-developers] [VTK 0013706]: vtkXOpenGLRenderWindow doesn't honour crosshair cursors

Mantis Bug Tracker mantis at public.kitware.com
Thu Dec 6 08:36:12 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://paraview.org/Bug/view.php?id=13706 
====================================================================== 
Reported By:                Giuseppe D'Angelo
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   13706
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    TBD 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2012-12-06 08:36 EST
Last Modified:              2012-12-06 08:36 EST
====================================================================== 
Summary:                    vtkXOpenGLRenderWindow doesn't honour crosshair
cursors
Description: 
In VTK 5.10.1 (again, the bugtracker doesn't allow me to set that version
number), vtkXOpenGLRenderWindow.cxx:

   1991   switch (shape)
   1992     {
   1993     case VTK_CURSOR_CROSSHAIR: // XC_crosshair sucks on linux, default
to arrow
   1994     case VTK_CURSOR_ARROW:
   1995       if (!this->XCArrow)
   1996         {
   1997         this->XCArrow = XCreateFontCursor(this->DisplayId,
XC_top_left_arrow);
   1998         }
   1999       XDefineCursor(this->DisplayId, this->WindowId, this->XCArrow);
   2000       break;

This makes no sense these days with cursor themes. A simple tentative fix is
attached.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-12-06 08:36 Giuseppe D'AngeloNew Issue                                    
2012-12-06 08:36 Giuseppe D'AngeloFile Added:
vtkXOpenGLRenderWindow_cursor_fix.patch                    
======================================================================




More information about the vtk-developers mailing list