summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-05-13Fl_Menu_Bar: document how to programmatically open menu from menubarManoloFLTK
2024-05-13Fix "Cannot build project with CMake ..." (#970)Albrecht Schlosser
... (add_library cannot create ALIAS target "fltk" because target "fltk::fltk" is imported but not globally visible) It turned out that this was due to a CMake feature that was changed in CMake 3.18. This commit makes imported FLTK targets globally visible for CMake versions less than 3.18.
2024-05-11Wayland: call gtk_surface1_set_modal() of GTK Shell protocol for modal winsManoloFLTK
This has the Mutter compositor open modal windows at the center of their parent window rather than at an unpredictable display position before this commit.
2024-05-11Update README.CMake.txt for building X11 specific programsAlbrecht Schlosser
Clarify different ways to disable Wayland in executable programs designed to use X11 specific code w/o further changes.
2024-05-11Enable suppression of "deprecated" warnings (FL_NO_DEPRECATE)Albrecht Schlosser
This is intended for backwards compatibility with FLTK 1.3.x code ported to 1.4.0. Users defining FL_NO_DEPRECATE can compile old (1.3.x) code w/o seeing lots of "deprecated" warnings. A legitimate use case is if old (1.3) code is intended to be used with both FLTK 1.3 and 1.4. FL_NO_DEPRECATE should NOT be defined if the user's code is targeted at 1.4.x or later. Users should fix their code to be prepared for the next minor release (e.g. 1.5.0). Todo: document this.
2024-05-11Fix DnD to Wayland FLTK app on the KDE/Plasma desktopManoloFLTK
2024-05-11Add detailed comment about getting all supported XDND data typesManoloFLTK
2024-05-10Fix DnD from Wayland gnome app to X11 FLTK appManoloFLTK
This DnD gives two data types of the dragged text: text and a gnome-specific type. The code previously accepted DnD with 1 data type or 4 or more data types, and processed situations with 2 or 3 data types in a special way that fails with gnome source apps. The new code processes situations with 2 and 3 data types just like other ones. This works OK when dragging from gnome wayland apps.
2024-05-10Wayland: slightly improved fix for issue #878ManoloFLTK
2024-05-10configure-based build: move terminal to fluid-dependent sectionManoloFLTK
2024-05-10Restore building with configure under Windows: add -lwinspoolManoloFLTK
2024-05-10Wayland documentation: improve layoutManoloFLTK
2024-05-09Remove unused variables, fix compiler warningsAlbrecht Schlosser
2024-05-09Optimize "arrow" drawing and centeringAlbrecht Schlosser
- center (sub)menu arrow as good as possible - adjust arrow sizes in Fl_Counter widget - refactor "oxy" arrow drawing and centering in widgets
2024-05-09Fix README.Wayland about libdecor-related packagesManoloFLTK
2024-05-09Wayland documentation: improve "Input Methods" and various detailsManoloFLTK
also fix typo mentionned -> mentioned
2024-05-09Followup: avoid dereference null pointer (#971)Greg Ercolano
Changing _root->find_clicked(..) to just find_clicked(..) includes the check of _root for NULL, which is probably better than doing a repeat explicit check and early exit.
2024-05-08macOS: Fix scaling subwindows - cont'd #927ManoloFLTK
2024-05-08Avoid possible dereferencing of null pointer (#971)ManoloFLTK
2024-05-08Have menu items drawn with same colors in all platforms (#969)ManoloFLTK
Also, remove this text from the doc of Fl_Menu_::down_box() "If this is FL_NO_BOX then it acts like FL_THIN_UP_BOX and selection_color() acts like FL_WHITE, for back compatibility." that was true only for the Windows platform and that required selection_color to be replaced by white for menu items which is not what FLTK 1.4 expects. The new state of menu item drawings is as follows : - all platforms draw menu items with the same symbolic colors - selected items and menu titles are drawn with the selection color as background color - menu items are drawn by default with no box but can be given one by Fl_Menu_::down_box(Fl_Boxtype) - the text of selected items is drawn with the menu's color unless fl_contrast() finds it does not make enough contrast with the background (selection color) and substitutes it with a more adapted color - the Windows platform uses a visibly different hue for its default selection color from what other platforms use
2024-05-08Wayland documentation: beef up description of registry_handle_global()ManoloFLTK
2024-05-07Improve arrow positions for 'oxy' schemeAlbrecht Schlosser
- improve centering the different arrows - fix one bug that prevented correct positioning
2024-05-07Limit (sub)menu arrow size as discussed in fltk.generalAlbrecht Schlosser
... in thread: "FLTK 1.4 Menu Bar Style", started on May 6, 2024 This is about the little triangle (or similar) pointing right when a submenu exists in a menu. The arrow form differs per scheme.
2024-05-07Extend some elements of the Wayland backend documentation fileManoloFLTK
2024-05-06Wayland: simpler implementation of "GTK Shell" protocolManoloFLTK
2024-05-05CMake: improve output of fl_debug_target()Albrecht Schlosser
Todo: check "*LOCATION" properties ...
2024-05-05Fix Visual Studio compiler warnings, make output visible...Albrecht Schlosser
on Windows w/o a console device ("DOS"/Debug window) if OpenGL3 is not available.
2024-05-05Wayland: use frame_cb before redrawing GL subwins - cont'd (#967)ManoloFLTK
2024-05-03Wayland: use frame_cb before redrawing GL subwindows (#967)ManoloFLTK
2024-05-03macOS + CMake: fix use of optional framework UniformTypeIdentifiersManoloFLTK
2024-05-03 CMake: don't put freetype stuff in include directories for macOSManoloFLTK
This removes these warnings for each source file compiled osxcross: warning: possibly dangerous include path specified: '-I /usr/include/freetype2' osxcross: info: you can silence this warning via 'OSXCROSS_NO_INCLUDE_PATH_WARNINGS=1' (env) when cross-compiling from Linux to macOS.
2024-05-02Fix MSVC warnings (#966)Matthias Melcher
2024-05-02Remove commit 4a31d49 that breaks X11 buildManoloFLTK
2024-05-02CMake: put freetype stuff in include directories for X11 onlyManoloFLTK
This would create these warnings for each source file compiled osxcross: warning: possibly dangerous include path specified: '-I /usr/include/freetype2' osxcross: info: you can silence this warning via 'OSXCROSS_NO_INCLUDE_PATH_WARNINGS=1' (env) when cross-compiling from Linux to macOS.
2024-05-02macOS + GL: remove compilation error with old SDK versionsManoloFLTK
2024-05-01CMake/debug: add more properties to fl_debug_target()Albrecht Schlosser
This commit is only for CMake debugging.
2024-05-01CMake: simplify compiler detection for '-Wshadow' testAlbrecht Schlosser
2024-04-30Remove (comment out) debug statement (kdialog)Albrecht Schlosser
2024-04-30Fix preset_file() and directory() in native file chooser for kdialogManoloFLTK
2024-04-30Implement and document new class Fl_PDF_File_SurfaceManoloFLTK
2024-04-29Fix potential NULL pointer dereferenceAlbrecht Schlosser
... as reported in thread "Windows 11 crash (still investigating)" of fltk.coredev, started on Apr 24, 2024. This bug could only be triggered if a /subwindow/ wss hidden but was not limited to Windows.
2024-04-27Documentation: minor formatting updateAlbrecht Schlosser
2024-04-27Improve documentation (preface + intro)Albrecht Schlosser
Update particularly Windows (but also other) build instructions.
2024-04-27CMake: make compile definition "FL_DLL" public for MSVC (#960)Albrecht Schlosser
Visual Studio projects that link to the FLTK DLL (fltk::fltk-shared) inherit the compile definition set by the DLL target and will be compiled with "-D FL_DLL" as required w/o the user project having to set this preprocessor macro explicitly. Todo: documentation will follow...
2024-04-27X11: simpler code to capture window decoration under xfceManoloFLTK
2024-04-27Documentation: bundled libdecor symbols are pefixed by "fl_"ManoloFLTK
2024-04-26Fix repositioning subwindows.Matthias Melcher
The commit f288aea from Feb. 23rd introduced a regression where children of subwindows were moved inside the subwindow when only the subwindow itself was supposed to move. 
2024-04-26FLUID: Fix live resize for windows and tabsMatthias Melcher
2024-04-26Box type focus frame graphics fixes.Matthias Melcher
2024-04-26X11: fix capture of window decoration under xfceManoloFLTK