Commit Graph

12026 Commits

Author SHA1 Message Date
ManoloFLTK
22dfda94c8 Fix macOS crash when drawing image with draw_image() in some scenarios (#1372) 2026-03-09 14:48:24 +01:00
ManoloFLTK
6e362407a4 Fix "Transparent PNGs not rendered correctly when window is scaled" (#1375) 2026-03-09 12:22:06 +01:00
ManoloFLTK
6053c3b47a Fix "Please remove the slight transparency from menu windows on macOS" (#1373)
Backported from commit e931c21 to
2026-03-09 11:15:55 +01:00
Greg Ercolano
0e65bbfd2e Applied xuyun018's fix for Fl_Tree horiz scroll (#1297)
Original commit bb1b10a440 on master
by Greg (see also GitHub Issue).

Backported to branch-1.4 because it fixes an annoying bug in the user
interface.
2026-03-08 15:16:25 +01:00
ManoloFLTK
a17b09a04f Correct draw translation by 0.5 pixels only.
Backported from commit e931c21 to master.
2026-03-03 09:45:23 +01:00
ManoloFLTK
17b30b55e3 Fix "Blurry fonts with cairo/pango on FLTK >= 1.4" (#1365) 2026-03-01 15:31:25 +01:00
Matthias Melcher
4644fd0590 Fix crash in Fl_Tabs without children (#1366) 2026-02-27 14:17:34 +01:00
Albrecht Schlosser
4fee10cb82 Set window class name (xclass) in test/editor
... to avoid side effects under Windows where the default would
prevent entering emoji's with the emoji palette if the WNDCLASS
begins with "edit" (conflict with a system WNDCLASS).

This is also documented in the respective tutorial chapter.

Backported from master (6f8ed5a85d).
2026-02-08 18:07:33 +01:00
Albrecht Schlosser
3bdc51c480 CMake: don't export unnecessary executable files
Exporting executable files means that they would appear in the CMake
config files as "imported targets". This could break the config files
of Linux and other distributions if such executables are not installed
when building FLTK programs.

The only executable files that need to be exported are the `fluid`
executables that may be used to convert .fl files during building.
2026-02-07 19:36:59 +01:00
Albrecht Schlosser
08eedffa1d Remove conflicting FL_EXPORT from header file (#1357)
Note: we can't have FL_EXPORT together with an *implementation* in
a header file.

If compiled with FL_DLL defined, the error message would be:
  "Fl_Font_Descriptor::~Fl_Font_Descriptor()' definition is marked
   dllimport"

... with some build types using gcc (e.g. cross-compiling for Windows).
2026-02-07 19:36:59 +01:00
ManoloFLTK
ab5b28acf2 X11 platform: Fl::enable_im() crashes without input methods (#1364) 2026-02-07 14:44:30 +01:00
Albrecht Schlosser
7fb11e66ee Fix documentation (remove doxygen warning) 2026-02-07 01:06:15 +01:00
Albrecht Schlosser
b75cec6448 Bump version number from 1.4.4 to 1.4.5
Preparing to release 1.4.5, but there are still some issues to fix
and release files (CHANGES.txt, announcements, etc.) still need to
be updated.
2026-02-06 17:55:44 +01:00
Albrecht Schlosser
341090fe4a Fix compiler warning and documentation
- fix: comparison of integer expressions of different signedness

This commit should not change the behavior.

Backported in parts from 54712fd388.
2026-02-06 16:37:42 +01:00
Albrecht Schlosser
89beab653e Fix typo in CMake config file 2026-02-01 14:43:29 +01:00
ManoloFLTK
5ce5795db9 Windows: improve moving window across screens having distinct scale factors. 2026-01-30 16:37:03 +01:00
ManoloFLTK
b42d7a3578 Emoji support: fix in Fl_Text_Buffer::next_char() necessary for keycap emoji sequences. 2026-01-30 09:40:19 +01:00
ManoloFLTK
2f4e2837e5 Wayland paste and DnD: fix minor issue revealed by valgrind. 2026-01-30 09:30:37 +01:00
ManoloFLTK
ec86cc0f9d Add complete support of emojis to text widgets (#1360) 2026-01-29 19:00:23 +01:00
Albrecht Schlosser
8daaf9ebd6 Remove usage of fl_utf8froma(), improve layout of test/utf8
- use demo strings in UTF-8 encoding rather than converting them
  which also simplifies the code
- replace some hard-coded width and pos. values with constants
- enlarge width of text widgets (left column) of the main window
- replace display of Unicode range U+D800 ... U+DFFF with a text
  explaining that this space is used by UTF-16 surrogate pairs to
  prevent warning messages about invalid Unicode text.
2026-01-26 18:50:35 +01:00
ManoloFLTK
780a41e0d6 Fix "Setting window custom cursor from SVG image crashes" - cont'd (#1363) 2026-01-24 16:51:12 +01:00
ManoloFLTK
b0e53f4fcd Wayland: use UTF8 text from clipboard when available. 2026-01-24 09:02:25 +01:00
ManoloFLTK
aea091ca99 Fix "Setting window custom cursor from SVG image crashes" (#1363) 2026-01-22 14:38:49 +01:00
ManoloFLTK
211d42049d Improve handling of text containing context-dependent unicode points.
This commit makes platforms Windows and macOS compute string widths
with the same mechanism as what is in place for platforms Wayland/X11:
- the width of a string containing a single codepoint is computed and
memorized in the table of character widths;
- the width of a string containing several codepoints is computed as
such rather than as the sum of the widths of its composing characters.

This commit also fixes how text input under Windows is processed
when a character needs encoding as a surrogate.

The result is that FLTK text widgets input and draw correctly also
complex emojis encoded with context-dependent codepoints.
2026-01-21 15:47:59 +01:00
ManoloFLTK
d9cc1e555b Restore emojis support under recent macOS versions - cont'd (#1360) 2026-01-16 12:43:23 +01:00
ManoloFLTK
d4d1af2f73 Restore emojis support under recent macOS versions (#1360) 2026-01-12 17:57:19 +01:00
ManoloFLTK
8f7b72f34b Fix "Drawing to the wrong window with cairo and X11" (#1358) 2026-01-12 10:00:55 +01:00
ManoloFLTK
07cce04aa1 Fix "Wayland: NULL pointer dereference in Fl::cairo_make_current()" (#1359) 2026-01-11 16:55:56 +01:00
Albrecht Schlosser
82399ebe4b Clarify that a font must be loaded before measuring text (#1356)
Documentation only: users must load a font with fl_font(face, size)
before measuring text with methods like fl_measure(), fl_height(),
fl_width(), fl_text_extents() etc.
2026-01-03 13:58:56 +01:00
ManoloFLTK
3c6ec861ab Add that FLTK 1.3 supports also Windows 11. 2025-12-30 07:59:06 +01:00
ManoloFLTK
12b6702394 Windows: Fix "If app appears on non-active screen …, window resizes" (#259) 2025-12-16 12:16:02 +01:00
Matthias Melcher
c5b0c2e37f Fix menu crash dereferencing nullptr (#1335) 2025-11-30 00:41:54 +01:00
Greg Ercolano
6a910ec169 Improved clip handling/fix box() 2025-11-18 05:24:46 -08:00
Greg Ercolano
6a0184262d Fl_Terminal fixes from 1.5.x - smoother scrolling and issue #1328 2025-11-17 14:04:55 -08:00
ManoloFLTK
1e769f44b4 Fix "Long Tooltips can crash under Wayland" (#1317) 2025-11-06 00:14:10 +01:00
ManoloFLTK
dd0417885e Cont'd "New Wayland subwindow code creates issues with resizes of opengl windows…" (#1311) 2025-10-27 09:55:13 +01:00
ManoloFLTK
d765037d2c Fix "New Wayland subwindow code creates issues with resizes of opengl windows…" (#1311) 2025-10-20 18:47:41 +02:00
ManoloFLTK
e23a6bd476 Simplify and improve function Fl_Wayland_Window_Driver::resize() (#1307) 2025-09-30 17:06:42 +02:00
ManoloFLTK
cd120b3ffb Underline does not appear in some fonts and scales (Windows,X11-noCairo) (#1308) 2025-09-19 11:29:07 +02:00
ManoloFLTK
2705990eab Fix: Underline does not appear in some fonts and scales (WinXP .. Win11) (#1308) 2025-09-18 08:56:52 +02:00
Albrecht Schlosser
9b9426bf6e Make Fl_Table::get_selection() 'const' (#1305) 2025-09-05 17:28:59 +02:00
ManoloFLTK
c223f99f71 Restore use of menubar at top of fullscreen window under X11 2025-08-31 16:27:06 +02:00
ManoloFLTK
d3bdc69990 Wayland: stop calling non-public libdecor_frame_get_content_{width,height} (#1296) 2025-08-20 09:25:22 +02:00
ManoloFLTK
3f8d1307fd Wayland: Some shortcut keys not delivered when input widget has focus (#1290) 2025-08-09 12:39:24 +02:00
ManoloFLTK
767e159ca2 Wayland: avoid NULL-pointer error after call to wl_display_get_protocol_error()
Backported from master: 0e6c61e6fc
2025-08-07 21:30:50 +02:00
ManoloFLTK
3b6c45125c Fix "Fl_Double_Window::make_current() issues with Cairo drawing" (#1285) 2025-08-07 09:43:22 +02:00
Albrecht Schlosser
d3af349f88 Fix documentation of fl_overlay_clear and fl_overlay_rect
The code example in fl_overlay_clear() wouldn't work.

Backported from: b00ae1eee4
2025-07-24 15:42:19 +02:00
Albrecht Schlosser
9c70ea95a1 Update CHANGES.txt for release 1.4.4 2025-07-19 18:45:10 +02:00
Matthias Melcher
c730902f84 Backport 5a574e8
Improve Fl_Button event handling documentation (#1267)
2025-07-16 12:49:12 +02:00
Matthias Melcher
7884d55c1a Backport 2803f70
#1114: Ensure minimum height of last block in Fl_Help_View
2025-07-16 12:47:40 +02:00