summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-18Fix VS compiler warning, write "copied" message to ttyAlbrecht Schlosser
... rather than popping up a message window.
2024-03-18Fix a Visual Studio compiler warningAlbrecht Schlosser
2024-03-18native-filechooser has preview panel with FLTK_USE_X11 and macOSManoloFLTK
2024-03-18Fl_Native_File_Chooser_GTK: improve preview of text files on HiDPIManoloFLTK
2024-03-18CHANGES.txt: mention new Fl_terminal widgetManoloFLTK
2024-03-18Restore building on old Linux/Unix systems lacking Xutf8LookupString()ManoloFLTK
2024-03-18 Fix "FLTK on NetBSD very slow on X11 with Unicode locale" (#935)ManoloFLTK
2024-03-17Simplify examples/CMakeLists.txt (libcairo linkage)Albrecht Schlosser
Fl_Cairo_Window is included in fltk::fltk and libcairo is linked implicitly if FLTK was built with Cairo support.
2024-03-16Improve linking of test/cairo_test.cxx demo programAlbrecht Schlosser
With modern CMake libcairo doesn't need to linked explicitly in the test/cairo_test.cxx demo program. Either '-lcairo' is implied by linking with fltk::fltk or it is not used at all. This fixes a linker warning on macOS: "ld: warning: ignoring duplicate libraries ..."
2024-03-16Fix memory leak in Fl_X11_Screen_Driver.cxx (#934)Albrecht Schlosser
Fl_X11_Screen_Driver::set_spot() did not free the list of missing fonts returned by XCreateFontSet(). This commit also initializes some variables and reformats code, but the only notable change is to call XFreeStringList(missing_list) if missing_list is not NULL.
2024-03-16Create enum Fl_Wayland_Screen_Driver::cursor_shapesManoloFLTK
2024-03-15Fix a bunch of compiler warnings, particularly for old compilersAlbrecht Schlosser
Works now much better with old C99 and C++98 standard compilers. Fixed: C++ comments in C files and headers included by C files. There are still some warnings with C90 though but these would be hard to fix and left as-is for now. test/fractals.cxx: some arrays were too small by 1, or the compiler warned at least (false positive?). Anyway, it's fixed now.
2024-03-15STR 3489: fix alpha blending for X11Matthias Melcher
2024-03-15Have FLTK use libdecor at version > 0.2.2ManoloFLTK
- it's no longer necessary to take care of the change in the layout of "struct libdecor" between versions ≤ 0.2.2 and > 0.2.2 of libdecor - version > 0.2.2 contains MR131, that is, it defines LIBDECOR_WINDOW_STATE_RESIZING so the hack to emulate it is no longer necessary - CMake option FLTK_USE_SYSTEM_LIBDECOR now requires libdecor version > 0.2.2 to be activated, otherwise the bundled libdecor is used - what will be the libdecor version after 0.2.2 (0.2.3? 0.3.0?) is not known as of today
2024-03-14Update documentation, remove/edit explicit FLTK versionsAlbrecht Schlosser
... to simplify further version updates. Add more deprecation notices concerning autotools/configure to README.Unix.txt.
2024-03-13Remove compilation warning "enumeration value ‘NONE’ not handled in switch"ManoloFLTK
2024-03-13To support difference in struct libdecor between built-in and systemManoloFLTK
That should disappear when next version of libdecor will be released.
2024-03-13Improve Fl_Wayland_Screen_Driver::base_scale(int)ManoloFLTK
2024-03-13Add details when FLTK_BACKEND_X11=off is usedManoloFLTK
2024-03-13Update libdecor to upstream commit 4f2c03d5 - cont'dManoloFLTK
2024-03-13Update libdecor to upstream commit 4f2c03d5 dated March 4, 2024ManoloFLTK
2024-03-13Remove useless X11 libraries when building with -DFLTK_BACKEND_X11=0ManoloFLTK
2024-03-13CMake-based build under Linux shows whether X11 is usedManoloFLTK
2024-03-13Allow CMake-based build with -DFLTK_BACKEND_X11=0 under Linux/UnixManoloFLTK
2024-03-12Improve keyboard event test program: add copy buttonAlbrecht Schlosser
... to copy selected or the full text to the clipboard.
2024-03-12Fix compilation errors under Ubuntu 20.04ManoloFLTK
The problems will hopefully be fixed upstream later
2024-03-12Fix several compiler warningsAlbrecht Schlosser
Three unrelated but only minor warnings.
2024-03-12Make Fl_Terminal selection_text() methods publicGreg Ercolano
As per Albrecht's request on fltk.coredev..
2024-03-12Fix trimming of trailing whitespace in Fl_Terminal::text()Albrecht Schlosser
... and document a missing parameter.
2024-03-12Fix use of FLTK_SCALING_FACTOR under macOSManoloFLTK
2024-03-12 using xlib to query the new DPI (old #910) (PR #913)ManoloFLTK
Thanks to Mike Qin for finding how to query the possibly changed DPI value of an X11 display while an FLTK app keeps running without running an external command in a pipe.
2024-03-12Update libdecor to upstream commit 09875530 dated March 3, 2024ManoloFLTK
2024-03-11Add Fl_Terminal to "Scrollbar Size" unittest (#931)Greg Ercolano
This involved enlarging the unittest main window to make room for the additional test. Adding this test revealed a problem in Fl_Terminal's global scrollbar size handling, which is fixed here as well. Also fixed a small issue in the demo's debugging terminal with the horiz scrollbar.
2024-03-11Refit display rows/cols preset, remove test codeGreg Ercolano
2024-03-11Fix Fl_Terminal horiz scrollbar appearing needlessly (#930)Greg Ercolano
2024-03-11Improve handling of events in test/handle_keys.cxxAlbrecht Schlosser
(1) Ensure that the terminal widgets doesn't use keyboard events. Advantage: keyboard navigation and selection doesn't interfere with the display. Drawback: Contents of the terminal can no longer be copied. This will be addressed in a later update. (2) Thanks to Manolo for his addition of the "GUI scaling" button. Although GUI scaling can be useful, it can also be annoying while testing shortcuts. (3) Changed all light buttons to check buttons.
2024-03-11 macOS: Fullscreen window loses sys menu bar if 2nd window is opened (#924)ManoloFLTK
2024-03-11Fix: Filechooser preview of XML file shows it as a corrupt image (#926)ManoloFLTK
2024-03-09Add another keyboard event test program test/handle_keys.cxxAlbrecht Schlosser
This program logs all keyboard events to a built-in Fl_Terminal widget. WIP: version 0.80
2024-03-09Use FL_Alt_Gr key definition in test/keyboardAlbrecht Schlosser
... and reformat key definition table
2024-03-09Use fixed font in test/clipboard for text displayAlbrecht Schlosser
This is more like a text editor would display text. Todo: make the font selection optional (later).
2024-03-09Add key name FL_Alt_Gr for AltGr on international keyboardsAlbrecht Schlosser
2024-03-06Small scrollbar fixesGreg Ercolano
2024-03-06Add horizontal scrollbar to Terminal widget (#928)Albrecht Schlosser
* Checkpoint. Basic functionality seems to be working. * Code cleanup * Added horizontal scrollbar to Terminal widget * Fix hscrollbar_size operation * Applied erco-terminal-mods_v5_final.patch.txt Final patch relating to PR 918 * Remove trailing whitespace, update copyright year --------- Co-authored-by: Jonathan Griffitts <jonathan.griffitts@gmail.com> Co-authored-by: Greg Ercolano <erco@seriss.com> Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2024-03-05 Filechooser preview of XML file shows it as a corrupt image - cont'd (#926)ManoloFLTK
2024-03-05Fix shortcut (Esc) handling in test/keyboard.cxxAlbrecht Schlosser
Esc is intentionally consumed by the test program (see comment) but other keystrokes (shortcuts) must pass to allow zooming with ctrl/+/-/0. The old code filtered all shortcuts which turned out to be wrong. Not being able to zoom was caused by a previous commit that lowered the priority of the zoom key handler - which alone was not wrong.
2024-03-04 Fix: Filechooser preview of XML file shows it as a corrupt image (#926)ManoloFLTK
2024-03-04Fullscreen window loses sys menu bar if 2nd window is opened (#924)ManoloFLTK
2024-03-04Fix Scaling window up/down also scales X/Y position on secondary displays ↵ManoloFLTK
only (#925)
2024-03-04Implement Fl_Wayland_Screen_Driver::base_scale(int numscreen)ManoloFLTK