Bug 213294 - x11-toolkits/fltk: FL_CURSOR_NONE not functional
Summary: x11-toolkits/fltk: FL_CURSOR_NONE not functional
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-07 21:45 UTC by Will B
Modified: 2016-12-16 18:09 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments
Test program demonstrating issue with FL_CURSOR_NONE (1.08 KB, text/plain)
2016-10-07 21:45 UTC, Will B
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Will B 2016-10-07 21:45:46 UTC
Created attachment 175518 [details]
Test program demonstrating issue with FL_CURSOR_NONE

With the current version of FLTK (1.3.3_2) on FreeBSD 10.3, when a top-level Fl_Window's cursor is set like this: window->cursor(FL_CURSOR_NONE) there is no change to the window's cursor, it remains the same.  If you set with other cursors, such as FL_CURSOR_CROSS, _MOVE, etc, the cursor *does* change, but FL_CURSOR_NONE has no effect.  

When tested on Debian Linux 8 (Jessie), FL_CURSOR_NONE works properly.

Please find a test program attached.

Thank you.
Comment 1 Alexey Dokuchaev freebsd_committer freebsd_triage 2016-11-22 09:15:06 UTC
I presume it happens when using FLTK installed from binary packages, not from the ports?

It looks like binary packages would miss Xinerama and Xcursor dependencies and thus giving you the behavior you're seeing.  While I'm working out the final fix, could you change the following line in port's Makefile as shown:

> USE_XORG=	x11 xcursor xext xfixes xft xinerama
Then rebuild and reinstall the package, or simply install directly from the port, and report if the problem is gone?
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-11-22 12:05:15 UTC
A commit references this bug:

Author: danfe
Date: Tue Nov 22 12:04:48 UTC 2016
New revision: 426818
URL: https://svnweb.freebsd.org/changeset/ports/426818

Log:
  x11-toolkits/fltk: ensure that binary packages have complete feature support

  Previously, binary packages would miss Xinerama and Xcursor dependencies and
  thus were giving some odd behaviors as e.g. reported in the PR.  While here,
  switch to USES+=localbase instead of manually amending CPPFLAGS and LDFLAGS.

  PR:	213294

Changes:
  head/x11-toolkits/fltk/Makefile
Comment 3 Alexey Dokuchaev freebsd_committer freebsd_triage 2016-12-16 18:07:59 UTC
Assume fixed as of ports r426818 due to lack of feedback.
Comment 4 Will B 2016-12-16 18:09:39 UTC
(In reply to Alexey Dokuchaev from comment #3)
Sorry, didn't receive notification about your comments.

I will test later and if any problems, will comment.  Thanks!