summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2023-08-29FLUID: simplified worker handlingMatthias Melcher
2023-08-28CMake: Make compile definitions 'FL_LIBRARY' and 'FL_DLL' privateAlbrecht Schlosser
... so they are not inherited by consumers of the library. Remove 'add_definitions(-DFL_LIBRARY)' from src/CMakeLists.txt This is not necessary, see CMake/fl_add_library.cmake Don't set obsolete property 'CLEAN_DIRECT_OUTPUT' which was removed in CMake 2.8.0.
2023-08-28Wayland.dox: some rephrasingManoloFLTK
2023-08-27Slightly simpler handle_close() in Fl_Wayland_Window_Driver.cxxManoloFLTK
2023-08-27Remove useless function prototype declarationManoloFLTK
2023-08-26Fix typos in Doxygen text for fl_filename_absolute/relative()ManoloFLTK
2023-08-26Adds safe versions of fl_filename_*, returning Fl_StringMatthias Melcher
2023-08-26FLUID: fixes file path calculation bugMatthias Melcher
2023-08-23Undo commit 5ea7a04 which requires Mutter V12ManoloFLTK
That commit's goal was to use an algorithm that does not assume that number keys are at keycodes 10-19, which may not hold with "special" keyboards. Unfortunately, the new algorithm requires Mutter V12 and fails with Mutter V11, used by Debian 12.
2023-08-22Wayland: fix regression in menu positioning brought by c43cf2fManoloFLTK
2023-08-20Undo commit 0a31225 which killed "caps lock"ManoloFLTK
2023-08-20Simpler function process_wld_key(()ManoloFLTK
2023-08-20Wayland: process number keys independently of keyboard layoutManoloFLTK
The new algorithm supports alternate keyboard layouts, e.g., Dvorak.
2023-08-20Remove redundant initialisationManoloFLTK
2023-08-20Create class function Fl_Wayland_Graphics_Driver::custom_offscreen()ManoloFLTK
2023-08-18Improve handling of type Fl_Offscreen under WaylandManoloFLTK
Type Fl_Offscreen is now to be cast to cairo_t*. Also, make sure the dimensions of GL windows are multiples of the screen scale factor.
2023-08-16X11 platform: give number keys layout-independent keysym'sManoloFLTK
Without this, the sudoku app is unusable with a French keyboard
2023-08-15Improved, yet compatible, widget callback system using macros (#729)Matthias Melcher
* adds FL/fl_callback.macros.H * adds FL_FUNCTION_CALLBACK_n(widget, function, [type, data]) * adds FL_METHOD_CALLBACK_n(widget, class, instance, method, [type, data]) * adds FL_INLINE_CALLBACK_n(widget, [type, name, data], callback_body) * adds `examples/callback` * full documentation
2023-08-15Wayland mouse wheel support: compositors can behave differentlyManoloFLTK
2023-08-14Handle shift + mousewheel event on Wayland (STR 3521)Albrecht Schlosser
Pressing the shift key while using the mousewheel changes horizontal to vertical scrolling and vice versa. This allows users with a standard mouse with only one scrollwheel to use it for both scrolling directions. This concludes "handling shift + mousewheel" for all supported platforms.
2023-08-13Handle shift + mousewheel event on Windows (STR 3521)Albrecht Schlosser
Pressing the shift key while using the mousewheel changes horizontal to vertical scrolling and vice versa. This allows users with a standard mouse with only one scrollwheel to use it for both scrolling directions. Note: other mice that have either two buttons or a scroll ball can generate both horizontal and vertical scrolling in one action. This commit does not affect such behavior. This patch is different than the one in file 'scroll.patch' (STR 3521). It takes care of distinct mousewheel delta calculation for vertical and horizontal mousewheels and avoids the "fallthrough" case. Note: macOS takes care of this, there's no special handling required. To do: the Wayland platform still needs to be updated.
2023-08-13Handle shift + mousewheel event on Linux (STR 3521)Albrecht Schlosser
Pressing the shift key while using the mousewheel changes horizontal to vertical scrolling and vice versa. This allows users with a standard mouse with only one scroll button to use it for both scrolling directions. Note: other mice that have either two buttons or a scroll ball can generate both horizontal and vertical scrolling in one action. This commit does not affect such behavior. This patch has been provided by Manolo in file 'scroll.patch' (see STR 3521).
2023-08-13Fl_Tabs now supports horizontal mouse wheel events.Matthias Melcher
2023-08-12Fix access to Cairo context.Aditya Siram
2023-08-10Reformat code, remove obsolete commentsAlbrecht Schlosser
No effective code changes, i.e. only formatting, indents and comments.
2023-08-10Improve docs of Fl::hide_all_windows()Albrecht Schlosser
+ update fluid dependencies No code changes.
2023-08-09macOS: add extra comment explaining need for PPC-specific source codeManoloFLTK
2023-08-09Fl_cocoa.mm: fix Apple macro for PPC caseSergey Fedorov
2023-08-09Wayland: fix fl_read_image() from offscreen bufferManoloFLTK
2023-08-08Wayland: improve layout of struct fl_wld_draw_bufferManoloFLTK
2023-08-08Move repeated code to Fl_Wayland_Graphics_Driver::cairo_init()ManoloFLTK
2023-08-07Fix for Broken "cube" demo (#762)ManoloFLTK
This commit fixes an error in the cube demo appearing specifically with the AMD Radeon GPU.
2023-08-05Revert "#733 partial: Adds rotation gesture event on MacOS"Albrecht Schlosser
This reverts commit 3049e6394a3376f7fff1c8cde19fd7bb1a9252ec as agreed upon in GitHub Issue #733.
2023-08-05#733 partial: Adds rotation gesture event on MacOSMatthias Melcher
2023-08-05Let FLTK give more detailed description of a Wayland fatal errorManoloFLTK
Wayland protocol error messages now give the protocol name and the error code.
2023-08-04Fix typos in documentation of fl_overlay_rect() etc. (#735)Albrecht Schlosser
Thanks to Matt for the improved docs, I just fixed some typos and added '()'s for better doxygen comments of functions.
2023-08-04#735: better comments on fl_overlay_rect()Matthias Melcher
2023-08-04Improve procedure to close decorated Wayland windowManoloFLTK
Libdecor complicates what should be simple, to close a decorated window, because it uses the titlebar after return from the closing callback function. Thus, FLTK delays the sending of the FL_CLOSE event to the window, only when libdecor runs in CSD mode.
2023-08-03#211: adds optional parameter for Fl_Input_::drawtext()Matthias Melcher
Does not change the original API but adds a function and keeps the original automatic.
2023-08-03Slightly improve Fl_Wayland_Screen_Driver::poll_or_select_with_delay()ManoloFLTK
2023-08-02#762: saves all frequently used OpenGL attributesMatthias Melcher
When rendering the OpenGL layer, this prepares the FLTK rendering parameters and restores them after FLTK rendering.
2023-08-02Fix Fl_Wayland_Image_Surface_Driver::end_current()ManoloFLTK
2023-08-02Wayland: fix window closing with Sway's kill command or app menuManoloFLTK
2023-07-31Wayland: add test to avoid null pointer dereferencingManoloFLTK
2023-07-31Implement Fl_Wayland_Screen_Driver::poll_or_select_with_delay(double)ManoloFLTK
2023-07-29Wayland: simpler use of function eglChooseConfig()ManoloFLTK
2023-07-28Fl_Shortcut_Button: Silence compiler warningsAlbrecht Schlosser
Part 1: [-Wreorder] 'shortcut_value’ will be initialized after ... Part 2: [-Wunused] unused variable 'Y'
2023-07-28Wayland.dox: add info about the xdg decoration protocolManoloFLTK
Also, use KWin to name the KDE desktop's Wayland compositor.
2023-07-22Adds default shortcut to Fl_Shortcut_Button.Matthias Melcher
2023-07-21Wayland: slightly improve procedure to close toplevel windowManoloFLTK