summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2026-02-01Restore usability with macOS SDK < 10.12ManoloFLTK
2026-02-01Improve documentation of functions dedicated to processing of emoji sequences.ManoloFLTK
2026-02-01Avoid leaving file descriptor open after failed call to mkstemp()ManoloFLTK
2026-01-30Fix in Fl_Text_Buffer::next_char() necessary for empty buffer.ManoloFLTK
2026-01-30Wayland paste and DnD: fix minor issue revealed by valgrind - cont'd.ManoloFLTK
2026-01-30Emoji support: fix in Fl_Text_Buffer::next_char() necessary for keycap emoji ↵ManoloFLTK
sequences.
2026-01-30Wayland paste and DnD: fix minor issue revealed by valgrind.ManoloFLTK
2026-01-29CMake: add try_compile() to figure out if Pen/Tablet is supportedAlbrecht Schlosser
This test is specifically intended to disable Pen/Tablet support on classic MinGW (32-bit) platforms that lack required symbol definitions although Pen/Tablet support might be supported by the Windows system. This test can be extended for other platforms, but for now it's performed only on Windows.
2026-01-29Emojis: add support of keycap emoji sequences.ManoloFLTK
- It is expected that all emojis listed in the Wikipedia "emoji" article as of early 2026 are recognized as single glyphs by FLTK text widgets. - Document functions fl_utf8_{next|previous}_composed_char() relatively to the notion of "emoji sequence". - Remove signed/unsigned comparison compilation warnings.
2026-01-28Improve usage of std::map::key_comp() member in fl_wayland_clipboard_dnd.cxxManoloFLTK
2026-01-28Improve usage of std::map objects in fl_wayland_clipboard_dnd.cxxManoloFLTK
2026-01-28Fix typo in documentation of fl_utf8len1().ManoloFLTK
2026-01-27Wayland: improve handling of priorities between diverse clipboard mime-types.ManoloFLTK
2026-01-26Modify fl_utf8toa() to make it account for composed emojis.ManoloFLTK
2026-01-26Improve documentation of fl_utf8_{next|from}_composed_char()ManoloFLTK
2026-01-26Let text widgets handle gracefully composed unicode characters - Cont'd.ManoloFLTK
This commit adds support of another type of composed characters: flags. It also fixes Fl_Text_Buffer::prev_char() and Fl_Text_Buffer::next_char() that must use Fl_Text_Buffer::byte_at() to access to the content of the text buffer.
2026-01-24Fix "Setting window custom cursor from SVG image crashes" - cont'd (#1363)ManoloFLTK
2026-01-24Let Fl_Text_Editor and Fl_Input handle gracefully composed unicode characters.ManoloFLTK
2026-01-23Wayland: use UTF8 text from clipboard when available.ManoloFLTK
2026-01-23Wayland: add support of recoded UTF8 text in clipboard.ManoloFLTK
2026-01-22Fix "Setting window custom cursor from SVG image crashes" (#1363)ManoloFLTK
2026-01-21Improve handling of text containing context-dependent unicode points.ManoloFLTK
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. The result is that FLTK text widgets input and draw correctly also complex emojis encoded with context-dependent codepoints. Function fl_utf8_remove_context_dependent() is no longer necessary.
2026-01-20Improve docu of member variable Fl_SVG_Image::proportional - cont'd (#1361)ManoloFLTK
2026-01-20Move call to fl_utf8_remove_context_dependent() to more appropriate place.ManoloFLTK
2026-01-20Remove possible NULL dereference introduced at commit 61e75e4ManoloFLTK
2026-01-19All platforms use same code to remove context-dependent codepoints from text ↵ManoloFLTK
input. This commit introduces function fl_utf8_remove_context_dependent() that removes from an UTF-8 string its context-dependent codepoints. Platforms macOS, Wayland and X11 call this function to process UTF-8 text received from a character palette as input to FLTK text. This makes sure FLTK text-editing widgets process textual input equally and consistently across platforms, especially emojis entered via a palette. Platform Windows creates a series of separate system events to input an emoji via the character palette. For this reason, function fl_utf8_remove_context_dependent() is not used by this platform which does internally the same filtering of context- dependent codepoints.
2026-01-19Windows: error dragging window between differently scaled display - cont'd ↵ManoloFLTK
(#1127)
2026-01-19Windows: error dragging window between differently scaled display - cont'd ↵ManoloFLTK
(#1127)
2026-01-18Emoji input: remove context-dependent unicode points from output of emoji ↵ManoloFLTK
palette. The character palette allowing to input emojis in text generates in some cases a series of unicode points to represent a single emoji. These series contain various kinds of unicode points with context-dependent meaning. This commit prevents such context- dependent unicodepoints from being inserted in FLTK text because FLTK text edition mechanism is not ready to handle properly context dependency in edited UTF-8 text.
2026-01-16Restore emojis support under recent macOS versions - cont'd (#1360)ManoloFLTK
This commit improves how FLTK follows changes to the focus window under macOS.
2026-01-14Partial fix for the Windows platform of the emoji issue (#1360)ManoloFLTK
This fixes input of emojis to Fl_Input and Fl_Text_editor widgets under Windows with the emoji palette. Most emojis have a Unicode point > 0xFFFF and therefore are encoded as a surrogate pair by Windows which uses UTF-16. Thus, Windows sends 2 consecutive WM_CHAR messages to the window and gives one member of the pair each time. After the second WM_CHAR message arrived FLTK is able to enter the emoji in its text. Windows may also send "variation selectors" and zero-width Unicode points when dealing with emojis. FLTK just skips them. Windows also translates some Unicode emojis into 1 emoji + 1 other Unicode point: for example "woman pilot" produces "pilot emoji" + "woman" unicode point. FLTK now handles this gracefuly. This fix also prefixes the windows class names with "FLTK-" under Windows to prevent collisions with Windows-reserved class names. That fix is necessary for the emoji palette to be usable in some scenarios. That fix is still under debate and may evolve in latter commits.
2026-01-12Restore emojis support under recent macOS versions - cont'd (#1360)ManoloFLTK
Detect Ctrl+Command+Space to open character palette only if not used before as shortcut.
2026-01-12Restore emojis support under recent macOS versions - cont'd (#1360)ManoloFLTK
This makes FLTK open the character palette when typing Ctrl+Command+Space or Function+e
2026-01-12Restore emojis support under recent macOS versions (#1360)ManoloFLTK
2026-01-12Function Fl::Private::cairo_make_current(void *gc) is not used anywhere in FLTKManoloFLTK
2026-01-11Fix "Drawing to the wrong window with cairo and X11" (#1358)ManoloFLTK
2026-01-11Don't pretend Wayland supports Fl::add_system_handler().ManoloFLTK
2026-01-11Fix "Wayland: NULL pointer dereference in Fl::cairo_make_current()" (#1359)ManoloFLTK
2026-01-10Windows: improve moving window across screens with distinct scale factors - ↵ManoloFLTK
cont'd
2026-01-10Windows: improve moving window across screens with distinct scale factors - ↵ManoloFLTK
cont'd
2026-01-09Remove un-necessary code from Fl_Wayland_Window_Driver::resize() functionManoloFLTK
2026-01-08Add CMake option FLTK_OPTION_PEN_SUPPORT (default: ON)Albrecht Schlosser
This option can be used to disable pen/tablet support if there are build problems on a particular platform or build system (e.g. MinGW) so users can continue to build FLTK 1.5. Users can also choose to disable pen support if they don't need it.
2026-01-08Wayland: use the "Cursor shape" protocol - Cont'dManoloFLTK
2026-01-07Fix callback forwarding in Fl_Input_Choice.Matthias Melcher
Widget would always call CHANGED but never RELEASE events, no matter how the when() flags were set.
2026-01-05Wayland: use modern approach to cursor shapes with the "Cursor shape" protocol.ManoloFLTK
This removes the need to guess names of files each theme gives to cursor shapes and makes linking with dbus superfluous when the compositor supports the new protocol. The old, surface-based approach to cursor shapes remains used for custom shapes.
2026-01-04Fix a possible popup menu crash event.Matthias Melcher
2026-01-04Windows: improve moving window across screens having distinct scale factors.ManoloFLTK
2026-01-04Add C++11 Fl_Valuator::format API.Matthias Melcher
This is helpful for writing language wrapper, in this particular case for PyFLTK.
2026-01-04Fix "Wayland's wl_display_dispatch() can block a Vulkan application" (#1354)ManoloFLTK
This rewriting of the FLTK callback function that runs when there are data available for reading in the socket connecting the app and the Wayland compositor is meant to facilitate the integration of Vulkan. This rewriting reproduces the recommended code to read from the socket documented in Wayland function wl_display_prepare_read_queue() when several threads potentially read from the socket.
2026-01-03Update FLTK colormap (src/fl_cmap.h) w/o changing colorsAlbrecht Schlosser
- update comments, including filenames - update build instructions for developers in util/cmap.cxx - update CMakeLists.txt (comments only)