summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-02-11Improve recognition of re-scaling shortcuts w/ various keyboard layoutsManoloFLTK
2024-02-11 KDE+X11 keyboard stops working after menu display (#904)ManoloFLTK
2024-02-09Change parameters of Fl_Wayland_Window_Driver::delete_cursor()ManoloFLTK
2024-02-08Improve Fl_Wayland_Window_Driver::hide()ManoloFLTK
2024-02-07Introduce "Modern CMake" in FLTKAlbrecht Schlosser
This is a big commit and there are too many changes to list them all. The main changes are: - rename all CMake build options to 'FLTK_*' - export library targets with namespace (prefix) 'fltk::' - standardize shared library target names with suffix '-shared' - set public build properties on libraries for consumers - document library names and aliases in README.CMake.txt - document changes in "Migrating Code from FLTK 1.3 to 1.4" - partial backwards compatibility for old user projects Included but not directly related changes: - fix Windows (Visual Studio) DLL build - add CMake function fl_debug_target() to show target properties - don't build test programs if FLTK is a subproject - internal: reformat CMake code: remove space before '(' Thanks to Matthias and Manolo for their help, testing, and feeback.
2024-02-07Fix Fl_Window::default_size_range() (#901)Albrecht Schlosser
Thanks to Manolo for the patch.
2024-02-06Fix window moving in Fl_Wayland_Window_Driver::resize()ManoloFLTK
2024-02-05Fl_Window_Driver::set_popup_window(), ↵ManoloFLTK
Fl_Screen_Driver::screen_boundaries_known() Fl_Window_Driver::set_popup_window() is to be used to declare a window should be positioned relatively to a previously mapped other window. This allows a platform to process such windows differently from other windows if needed. Menu and tooltip windows are so declared. A call to Fl_Window_Driver::set_popup_window() also allows to distinguish a real menu or tooltip window from a window marked by Fl_Window::set_menu_window() or by Fl_Window::set_tooltip_window() but that's not a real menu or tooltip. New member function bool Fl_Screen_Driver::screen_boundaries_known() returns true by default. A platform where the position of windows inside a screen is hidden (e.g., Wayland) returns false. This allows FLTK to refrain from trying to make sure a computed position is inside a screen.
2024-02-04Shorten parameter list of Fl_Wayland_Window_Driver::delete_cursor_(bool)ManoloFLTK
2024-02-03Wayland: fix setting cursor to FL_NO_CURSORManoloFLTK
2024-01-31Improve documentation of Fl_Native_File_ChooserAlbrecht Schlosser
Document restrictions imposed by the new system file chooser dialogs, particularly by 'kdialog' and 'zenity' (Unix/X11/Wayland only).
2024-01-29Fix cached GL context on all platforms (#737)Matthias Melcher
2024-01-29Fix OpenGL context caching on macOS (#737)Matthias Melcher
2024-01-29RFC: Different approach to Editor tutorial (see #189) (#883)Matthias Melcher
Update test/editor code and tutorial (#189, #883) Different, sequential approach to Editor tutorial Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2024-01-28Fix animated gif reloading (#897)Matthias Melcher
2024-01-27Fix warning for out of range index.Matthias Melcher
2024-01-27Fix inlined animated GIFs with NULL name (#897)Matthias Melcher
2024-01-25Fix mousewheel problem with Fl_Text_Editor (issue #879)Greg Ercolano
When an Fl_Text_Editor ended up under the mouse, it took mousewheel events for itself, freezing navigation of a parent's Fl_Scroll. Patch handles mousewheel events for both up/down and left/right by checking: > If editor has no scrollbar (e.g. no content to scroll to), then mousewheel events for that scrollbar are ignored so the parent can be navigated. > If editor has a scrollbar, it handles wheel events until scroller reaches an extreme position (e.g. top or bottom), it starts ignoring wheel events so the parent can be navigated.
2024-01-24Fix small typos in Anim GIF docsGreg Ercolano
2024-01-23Fix "Wrong tooltip position on Wayland …" - cont'd (#894)ManoloFLTK
2024-01-23Fix "Wrong tooltip position on Wayland with secondary monitor" (#894)ManoloFLTK
2024-01-22Fl_Preferences: fix missing '/' (#891)Albrecht Schlosser
Without the '/' FLTK 1.4 wouldn't fall back to the 1.3 prefs folder even if it existed.
2024-01-22Fix warning.Matthias Melcher
2024-01-22Fixes mouse pointer visibility for popups (#890)Matthias Melcher
2024-01-22Fix wrong path var and typosMatthias Melcher
2024-01-22Fix User Preferences file search order for Unix (#891)Matthias Melcher
2024-01-22Add popup_window() virtual member functions to Fl_Window_DriverManoloFLTK
2024-01-21 Fix Wayland: crash with set_menu_window() - cont'd (#892)ManoloFLTK
2024-01-21 Fix Wayland: crash with set_menu_window() - cont'd (#892)ManoloFLTK
2024-01-21Fix "Wayland: crash with set_menu_window()" - cont'd (#892)ManoloFLTK
2024-01-21Fix "Wayland: crash with set_menu_window()" (#892)ManoloFLTK
Fixes also a similar crash occuring after use of set_tooltip_window(). Two bool member variables are added to class Fl_Window_Driver to indicate true FLTK menu windows (i.e., created by Fl_Menu_Item::pulldown()) and true FLTK tooltip windows (i.e., Fl_Tooltip).
2024-01-19Fix compiler warning [-Wmaybe-uninitialized]Albrecht Schlosser
'buf' could indeed be used uninitialized if the switch statement below was executed with an unknown style (no default case).
2024-01-19Fix crash in Fl_Preferences for deformed group name (#891)Matthias Melcher
2024-01-19Wayland: add necessary initializations after commit b7fba46ManoloFLTK
2024-01-18Create struct wl_callback_listener ↵ManoloFLTK
*Fl_Wayland_Graphics_Driver::p_surface_frame_listener
2024-01-18Wayland: throttle resize operations also for top-level GL windowsManoloFLTK
Member cb of struct wld_buffer is replaced by member frame_cb of struct wld_window. This allows frame_cb to be used both for non-GL and for top-level GL windows.
2024-01-17Synchronize mouse and keyboard callbacks for Fl_Button (#877)Matthias Melcher
Keyboard behavior for button types was not consistent with mouse click behavior. This change avoids callbacks when pressed radio buttons are pressed again.
2024-01-17Restore original Fl_Button event behavior(#877)Matthias Melcher
Previous commits introduced too many changes to Fl_Button callbacks, creating problems in user apps. This is the base for a second much more specific fix to event flags.
2024-01-17 Wayland + full-size subwindow resizing issue - cont'd (#878)ManoloFLTK
Implement a less strict handling of resizing of a decorated window entirely covered by a subwindow where throttling of fast resize commands is guided by the value of the in_use member variable of the window's wld_buffer.
2024-01-15Fixed issue number reference.Greg Ercolano
2024-01-15Addresses issue #879Greg Ercolano
2024-01-15Small code fixupsGreg Ercolano
> Enabled -Wall -Wextra -Wpedantic to catch errors - Silenced resulting "unused parameters" warnings - Fixed char omission in protected Fl_Terminal::insert_char() methods > Self doc code and better comments in RingBuffer::resize() > Changed private RingBuffer::clear_disp_row() -> clear_disp_rows() > Added private RingBuffer::hist_rows()/disp_rows() setter methods > Added private RingBuffer::offset_adjust() method for adjusting RingBuffer offset_ > Fixed comment typos > Remove white space inside outer parens of while()/if()/etc
2024-01-14#877: Formatting, comments, debug outputMatthias Melcher
2024-01-14#877L: Formatting, Unused variable.Matthias Melcher
2024-01-14#842 - cont'd: fix typos in documentation.ManoloFLTK
2024-01-14#887: Fixes FLTK file chooser not releasing preview image.Matthias Melcher
...when hidden
2024-01-14#889: Fixes missing return statement.Matthias Melcher
2024-01-13#842: Documents args() color values and how they applyMatthias Melcher
2024-01-13#877: Fixes shortcut callbacks for Fl_ButtonMatthias Melcher
- this commit does rewrite some of the logic, hoping to make thing more, um, logical. The bits react mostly the same and hopefully as expected. Everything is documented in the Fl_Button ctor.
2024-01-13Remove compilation warningManoloFLTK
converting to non pointer type "int" from NULL (-Wconversion-null)