DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2713
Version: 1.3.0


The capitalisation isn't random[1]:

"Under X, this is turned into a XA_WM_CLASS pair by truncating at the
first non-alphanumeric character and capitalizing the first character, and
the second one if the first is 'x'. Thus "foo" turns into "foo, Foo", and
"xprog.1" turns into "xprog, XProg"."

I'm not sure there's any reason for this behaviour other than being FLTK
convention, but I thought I'd leave it as-is.

The code comment about non-alphanumeric characters breaking XResource
lookups may be accurate, but in practice XA_WM_CLASS is not used in this
way very often. Developers who do want to use this property for XResource
lookups should be aware of this limitation, and use only alphanumeric
characters.

[1]
http://www.fltk.org/doc-1.3/classFl__Window.html#a913bb4f81e4627e5b4a860ef78bca1ff


Link: http://www.fltk.org/str.php?L2713
Version: 1.3.0

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to