Commit Graph
7765 Commits
Author SHA1 Message Date
Albrecht Schlosser 80fb2c51fa Remove declarations of unused variables to fix warning
g++ [-Wunused-variable]
2026-07-13 14:13:00 +02:00
Matthias Melcher 4d992b9810 Revert "Fix unverified realloc (#1486)"
This reverts commit 9952017a03.
2026-07-13 11:45:52 +02:00
Matthias Melcher af76e9a73c Fix fprint style formatters (#1490, #1491) 2026-07-12 14:00:49 +02:00
Herman Semenoff 9952017a03 Fix unverified realloc (#1486)
* temporary fix
2026-07-12 13:51:08 +02:00
Herman Semenoff 651b6223a1 optimize to use default constructors (#1484) 2026-07-12 13:45:20 +02:00
Herman Semenoff 2e41b62c38 Fl_Help_View: replace to emplace C++11 (#1483) 2026-07-12 13:42:41 +02:00
ManoloFLTK ac56caff79 Have function Fl_Wayland_Screen_Driver::poll_or_select_with_delay() call libdecor_dispatch(). 2026-07-12 08:39:16 +02:00
ManoloFLTK a809fab890 Wayland: explicit which version of the "GTK Shell" protocol is used. 2026-07-12 08:37:38 +02:00
Matthias Melcher da42737e44 Fix all uses of isspace()
* this does not update to full utf8 support,
  but solves misinterpreting ASCII
  spaces and even avoids crashes
* `isprint` and `isxdigit` and more have
  potentially the same issue
2026-07-09 14:25:19 +02:00
ManoloFLTK 371393f995 Wayland: variables gtk_shell_… can remain static to their source file. 2026-07-08 14:37:52 +02:00
ManoloFLTK 139e9f74d7 Wayland: don't name FLTK-defined functions with the libdecor_ prefix. 2026-07-06 10:03:20 +02:00
ManoloFLTK 2660309e1c Wayland: obey compositor to set timer values for key repeats - rate can be 0. 2026-07-04 18:37:33 +02:00
ManoloFLTK a2bc8d80ad Wayland: obey compositor to set timer values for key repeats. 2026-07-04 17:28:55 +02:00
ManoloFLTK 2a789efbb8 Remove crash in native-filechooser test program when selecting multiple directories. 2026-07-04 08:51:59 +02:00
Matthias Melcher 071b525170 Fix GTK3 file chooser driver
* better testing
* allow multiple selection
* fix BROWSE_MULTIPLE_DIRECTRY not selecting anything
2026-07-03 22:25:12 +02:00
Matthias Melcher c5cfce3189 Improve GTK filechoser file preset
* preset_file would not work for loading
* other incomplete otions
2026-07-03 21:37:05 +02:00
Albrecht Schlosser 8ff7fdfb18 Replace ::isspace() with fl_ascii_isspace() (#1465)
This change guarantees clean behavior (no crash, no casts needed),
and it finds all ASCII "space" characters, even in UTF-8 code with
any UTF-8 characters. Non-ASCII code (in UTF-8 sequences) returns
false on any tested byte, i.e. any Unicode "space" character outside
the ASCII range is not found.

This commit also removes one local replacement function that had
been added previously. It is intentionally not exported and can only
be used inside the library.

Todo: other occurrences of calling isspace() need more fixes.
2026-07-03 19:04:16 +02:00
Matthias Melcher d98d143d14 Remove wrongly commited file 2026-07-03 17:36:32 +02:00
Matthias Melcher 46ac92572a Fix pend driver for X11/Wayland hybrid (#1471) 2026-07-02 15:31:29 +02:00
Matthias Melcher 7922128f9f Fix use of fl_offscreen in penpal (#1469)
* uses Fl_Image_Surface now
* fix bad pen button behavior on macOS
2026-06-26 17:33:51 +02:00
ManoloFLTK 4a421e3f4c Fix: Wayland build is broken under some conditions - cont'd (#1470)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-wayland-arm64 (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
Build and Test / build-windows-arm (push) Has been cancelled
2026-06-22 16:56:21 +02:00
ManoloFLTK 5b3b3f93de Fix: Wayland build is broken under some conditions (#1470) 2026-06-22 16:36:18 +02:00
Matthias Melcher d25597f191 Reverse last commit 2026-06-21 16:17:31 +02:00
Matthias Melcher c8457853fa Wayland: fix copy_offscreeen scaling (#1469) 2026-06-21 16:15:17 +02:00
Matthias Melcher ddd5d3fb6f Wayland Pen Support: concept for titlebar actions
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-wayland-arm64 (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
Build and Test / build-windows-arm (push) Has been cancelled
2026-06-21 13:15:53 +02:00
Matthias Melcher a8171bfa27 Better menu window behaviour (Wayland Pen)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-wayland-arm64 (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
Build and Test / build-windows-arm (push) Has been cancelled
2026-06-21 02:52:57 +02:00
ManoloFLTK 4bd06fb796 Restore coherence between COMMAND and OUTPUT members of add_custom_command. 2026-06-21 09:05:39 +02:00
Matthias Melcher 9be57bd14a Show Pen Buttons in penpal
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-wayland-arm64 (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
Build and Test / build-windows-arm (push) Has been cancelled
2026-06-20 16:09:12 +02:00
MatthiasWM 7fcd548e02 Improve Pen interface on Windows
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-wayland-arm64 (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
Build and Test / build-windows-arm (push) Has been cancelled
* remove ARM64 special case
* fix crash when deleting pen focus widget
* fix mouse event creatinon
* remove debugging message
2026-06-20 14:05:17 +02:00
Matthias Melcher f981ef470f Remove bad cerr debug output
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-06-15 23:19:19 +02:00
Matthias Melcher 40276684a1 Fix minor PenPal issues
Layou, menubar links, pressure
drawing, eraser drawing
2026-06-15 20:14:42 +02:00
Gonzalo Garramuño 3101d54bd7 Add Tablet Driver for Windows and Wayland
* First implementation for Wayland and WinAPI (#1458)
* Both drivers should honor FLTK_HAVE_PEN_SUPPORT
* Improved PenPal test app
2026-06-15 19:34:34 +02:00
ManoloFLTK 24acdbf0b8 Fl_MacOS_Sys_Menu_Bar_Driver::rename_window fails with null window labels (#1455)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-06-13 16:32:31 +02:00
ManoloFLTK b31902e7cb Restore use of Cmd-+ under macOS with the US keyboard layout and others (#1454) 2026-06-13 16:11:55 +02:00
Albrecht Schlosser 722e2477a1 Refactor Fl::call_screen_init()
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
- remove unnecessary FL_EXPORT decoration
- move (private) declaration from FL/Fl.H to src/Fl_Screen_Driver.H
- rename Fl::call_screen_init() to Fl::init_screens()
2026-05-31 19:48:37 +02:00
ManoloFLTK b8ccd16eb8 Windows: improve support of window resize across screens with distinct DPI (#1439)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-05-30 09:06:08 +02:00
ManoloFLTK f2daf05bf5 Windows: improve support of window resize across screens with distinct DPI (#1439)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-05-29 19:13:25 +02:00
ManoloFLTK b058f216c4 Windows: improve support of screen configuration changes while FLTK app runs.
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-05-29 11:45:55 +02:00
ManoloFLTK 34c23c6b71 Correct use of Fl_Window::no_fullscreen_w|h private variables.
These variables store the size of a window to be used when it's un-fullscreened or un-maximized.
They equal 0 when a window is neither fullscreen nor maximized.
They are given a meaningful value when a window is turned fullscreen or maximized.
They are reset to 0 just after the window is un-fullscreened or un-maximized.
2026-05-29 10:21:23 +02:00
ManoloFLTK d7266f5248 Windows: fix window titlebar capture when desktop uses negative coordinates.
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-05-28 17:28:10 +02:00
ManoloFLTK 46d3cfbddc Windows: fix moving a window across screens with distinct scaling factors - cont'd (#1439)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-05-28 12:40:20 +02:00
ManoloFLTK 32764ac94c Windows: fix moving a window across screens with distinct scaling factors (#1439) 2026-05-28 12:02:46 +02:00
Matthias Melcher 547c6940cd Improve Fluid formatting (#1448)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
* change pointer type formatting
* change 0, NULL, and 0L into nullptr
2026-05-25 22:42:54 +02:00
ManoloFLTK 9331503a55 Fix "Windows rapidly changing scales near edge between screens" - cont'd (#1439)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-05-23 08:27:25 +02:00
ManoloFLTK f6142569b3 Fix "Windows rapidly changing scales near edge between screens" - cont'd (#1439)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-05-21 16:50:13 +02:00
ManoloFLTK fa7ab95d35 Fix "Windows: windows can show up on the wrong screen with the wrong scale" (#1437)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-05-21 08:25:17 +02:00
ManoloFLTK faf210a1d0 Fix "Windows rapidly changing scales near edge between screens" - cont'd (#1439)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-05-20 16:51:42 +02:00
Matthias Melcher 8cdaec8976 Improve hold browser keyboard behavior
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
* unselected Up now selects the last *visible* item
* fix top selection warping regression
2026-05-19 17:05:07 +02:00
ManoloFLTK d4d815cfb4 Fix "Windows rapidly changing scales near edge between screens" (#1439)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-05-19 12:45:20 +02:00
Matthias Melcher 298466c8be Fix keyboard Up and Down for Fl_Hold_Browser (#1403) 2026-05-19 12:40:30 +02:00