summaryrefslogtreecommitdiff
path: root/src/drivers
AgeCommit message (Collapse)Author
2025-08-09Wayland: Some shortcut keys not delivered when input widget has focus - ↵ManoloFLTK
cont'd (#1290)
2025-08-08Wayland: Some shortcut keys not delivered when input widget has focus (#1290)ManoloFLTK
2025-08-07Wayland: avoid NULL-pointer error after call to wl_display_get_protocol_error()ManoloFLTK
2025-08-06Fix "Fl_Double_Window::make_current() issues with Cairo" - cont'd (#1285)ManoloFLTK
2025-08-05Fix "Fl_Double_Window::make_current() issues with Cairo drawing" (#1285)ManoloFLTK
2025-08-05Fix issue under Wayland when erasing overlay rectangle (#1285)ManoloFLTK
2025-08-04Fix "Callback or event on minimize of the main window " for Wayland (#1288)ManoloFLTK
2025-07-10Wayland: account for new Wayfire compositor - cont'dManoloFLTK
2025-07-09Wayland: account for new Wayfire compositorManoloFLTK
2025-07-08Fix trailing whitespace and convert a few tabs to spacesAlbrecht Schlosser
... according to CMP
2025-06-19Ensure that the 'awake' pipe does not overflow (#1263)Matthias Melcher
2025-06-19Update Fl::await() and friends API and documentationMatthias Melcher
This creates the base for #1263, but does not fix it yet.
2025-06-10Fix "Selecting menus from the menubar under Wayland when in fullscreen" (#1264)ManoloFLTK
2025-06-05Restore building for Linux w/o cairo and w/o xftManoloFLTK
2025-06-05Fix several compiler warnings [-Wextra-semi]Albrecht Schlosser
Example: warning: extra ‘;’ after in-class function definition [-Wextra-semi] Also: replace 'FL_OVERRIDE' with 'override' in all modified files
2025-06-03Restore use of build option FLTK_USE_POLLManoloFLTK
2025-05-30Fix for #1260 - part 4: fix when menu button is in subwindow under WaylandManoloFLTK
2025-05-30Fix for #1260 - part3: fix exploration of menu button window under WaylandManoloFLTK
2025-05-30Fix for #1260 - part2: improve position of menu button window under WaylandManoloFLTK
2025-05-29Wayland: fix "A flag to set how menus should show up" (#1260)ManoloFLTK
2025-05-13Remove deprecated function Fl::set_idle()Albrecht Schlosser
This turned out to be more complicated than just to delete a function because it was used internally, and the callback signatures were a bit flaky. I also added a lot of documentation to clarify matters. FL/Fl.H: document idle callback signatures, make some internal functions of class Fl private, add public Fl::idle() accessor (read- only), add Fl::add_idle(Fl_Old_Idle_Handler cb) to enable using old-style idle callbacks w/o 'data' argument. FL/forms.H: replace Fl::set_idle() with Fl::add_idle(). src/Fl.cxx: rename private Fl::idle_ with trailing underscore. src/Fl_System_Driver.cxx: use new public accessor Fl::idle() to access Fl::idle_ which is now private. src/Fl_add_idle.cxx: improve documentation, clarify idle callback matching, add example code in docs, rename methods, add overloaded Fl::add_idle(Fl_Old_Idle_Handler cb). src/Fl_win32.cxx: use public Fl::idle() rather than private member. src/drivers/Unix/Fl_Unix_System_Driver.cxx: same as above. src/Fl_cocoa.mm: same as above.
2025-05-10Wayland: remove crash when resizing hidden subwindowManoloFLTK
2025-05-09Fix erroneous #include directiveManoloFLTK
2025-05-09Remove declaration of Fl_Scalable_Graphics_Driver from FL/Fl_Graphics_Driver.HManoloFLTK
and declare it in non-public header src/Fl_Scalable_Graphics_Driver.H which also declares classes Fl_Font_Descriptor and Fl_Fontdesc.
2025-04-18Remove unused code from Fl_Wayland_Window_Driver (#1248)Albrecht Schlosser
This commit removes the unused static method Fl_Wayland_Window_Driver::resize_after_screen_change(void *data) and related data as discussed in the context of PR #1248.
2025-04-18Fix "heap-use-after-free" in resize_after_screen_change() (#1248)Timothy Lee
When a native window is destroyed, make sure the callback to Fl_WinAPI_Window_Driver::resize_after_screen_change() is removed. Added by Albrecht-S: Thanks for the original fix to Timothy Lee (@timothytylee). src/drivers/X11/Fl_X11_Window_Driver.cxx: equivalent fix for X11 as discussed on GitHub PR #1248
2025-04-03Fix "Minor drawing artifact at scale 200% under X11 session" (#1243)ManoloFLTK
2025-03-25Fix: Windows: Clipboard gets stuck when text is copied while window is ↵ManoloFLTK
hidden (#1233)
2025-03-19Remove obsolete build option 'FLTK_OPTION_STD'Albrecht Schlosser
This option is no longer needed since FLTK 1.5 always requires C++11.
2025-03-19Fix "FLTK apps broken under LabWC compositor" (#1231)ManoloFLTK
2025-03-18Wayland: improve support of screen removal while FLTK runsManoloFLTK
2025-03-18Wayland: fix unsetting fullscreen state for window created fullscreenManoloFLTK
In some multi-screen settings, the un-fullscreened window would leave its screen but would not enter any screen.
2025-03-18Fix "Inconsistent FL_FULLSCREEN when creating full-screen window" (#1225)ManoloFLTK
The commit has all platforms send the FL_FULLSCREEN event when a window is created fullscreen.
2025-03-17Fix comparison that's always trueAlbrecht Schlosser
... because base_dir[0] and dest_dir[0] are *signed* chars.
2025-03-17Windows: fix "heap-use-after-free" in home_directory_name()Albrecht Schlosser
Calling getenv() twice with different output vars and accessing both later could cause "heap-use-after-free" error in some Windows versions. The result of home_directory_name() would be unpredictable. Found using Wine and/or MSYS2/clang/libc++ with Address Sanitizer.
2025-03-17Wayland: improve support of addition/removal of displays while FLTK runsManoloFLTK
2025-03-17Wayland: compute work area size under MUTTER or when single displayManoloFLTK
2025-03-16Fix font termination bug from 2e1730d2f0f1 (#1221)Albrecht Schlosser
See also #1223, and thanks to Gonzalo for finding it.
2025-03-15Fix potential buffer overflow on Windows when loading fonts (#1221)Albrecht Schlosser
This commit is bigger than necessary to fix the buffer allocation but it also prevents some unnecessary string copies: the font name is converted from UTF-16 to UTF-8 directly in the buffer used later. Code reformatted and clarified as well, some duplicated code was removed.
2025-03-14Wayland: simplify handling of tall menu windowsManoloFLTK
2025-03-13Improve support of screen addition/removal while FLTK runsManoloFLTK
2025-03-12Restore support of the sway compositor destroyed by 9b5d40aManoloFLTK
2025-03-12Under KDE V6 and Wayland, handling of taller-than-display menu windows fails ↵ManoloFLTK
(#1216)
2025-03-11Fix "Wayland: Huge menu hiding unexpectedly when moving a mouse (#1115)ManoloFLTK
This commit also computes work-area size for single-display settings.
2025-03-08Add Fl_Darwin_System_Driver::filename_relative()ManoloFLTK
This removes the last instance in FLTK of use of #if __APPLE__ instead of the driver mechanism.
2025-03-07Fixing error where std::string could be assigned NULL'Matthias Melcher
2025-03-07Fix "fltk autotools build does not link against libXft" (#1202)ManoloFLTK
libXft was erroneously present in the link command when using Pango and Cairo. This is fixed by disconnecting the GUI scaling code from use of Xft. This commit also makes sure that when Wayland is used, pkg-config is available on the build machine. This allows to remove from file CMake/options.cmake code that was labelled with "FIXME".
2025-03-07Removes the remaining references to Fl_String.Matthias Melcher
Still to do: rename fl_filename... to fl_filename..._str and introduce into core library.
2025-03-07Fixing a couple of warnings.Matthias Melcher
2025-03-07One more FL_String::apend fix,Matthias Melcher