Commit Graph

12175 Commits

Author SHA1 Message Date
Albrecht Schlosser
6a0edd15c5 Revert/fix a0654b59ac: FLTK_CONSOLIDATE_MOTION = OFF
Some checks failed
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
In commit a0654b59ac all assignments to
variable `fl_xmousewin` were erroneously put under control of macro
FLTK_CONSOLIDATE_MOTION. This commit reverts this.

The correct fix would have been to declare

  extern Fl_Window *fl_xmousewin;

unconditionally which was eventually done in a later commit.

The related variable `static Fl_Window *send_motion;` is still used
under control of macro FLTK_CONSOLIDATE_MOTION.
2025-11-13 15:38:22 +01:00
ManoloFLTK
c6f34560b0 Wayland: fix computation of screen workarea size.
Some checks failed
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
This computation has been found possible only for single-display settings.
2025-11-10 17:33:53 +01:00
Albrecht Schlosser
054fc9c823 Declare some methods of Fl_Window 'const'
These Fl_Window methods are 'const' but had not been declared 'const':

- uchar get_size_range(...) const
- int shown() const
- const Fl_Image *shape() const
- int screen_num() const
- fl_uintptr_t os_id() const
2025-11-10 16:23:04 +01:00
ManoloFLTK
93576abd0b Attempt to improve description of CMake option FLTK_GRAPHICS_CAIRO
Some checks failed
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
2025-11-10 09:01:37 +01:00
ManoloFLTK
733511af41 Remove warnings when building Doxygen documentation.
Some checks failed
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
2025-11-09 14:37:07 +01:00
Matthias Melcher
d12d16f6ab Fix documentation of fl_filename_ext 2025-11-09 13:09:46 +01:00
ManoloFLTK
c12105193c Complete documentation of function fl_open_callback().
Some checks failed
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
2025-11-09 11:01:13 +01:00
ManoloFLTK
fd14a3abf0 Wayland: simpler computation of screen workarea size
Some checks failed
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
2025-11-08 16:43:36 +01:00
ManoloFLTK
eef7fe1978 Update list of Debian packages to support Wayland
Some checks failed
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
2025-11-07 14:05:42 +01:00
Matthias Melcher
4966cc7a1e Add rule of five for Fl_Widget_Tracker.
Some checks failed
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
Widget tracking is linking back to a instance of
Fl_Widget_Tracker. Copying or moving one will
potentially crash an app, so disable it.
2025-11-06 15:31:46 +01:00
ManoloFLTK
87f9a6f4d6 Wayland: fix computation of screen size and workarea
The previous method failed with gnome 49.1
2025-11-06 11:23:00 +01:00
ManoloFLTK
d8df24a2ea Fix "Long Tooltips can crash under Wayland" (#1317)
Some checks failed
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
2025-11-05 21:10:18 +01:00
ManoloFLTK
f2db90cb77 Fix "CMake: Fallback to libOpenGL (no-X11 OpenGL)" (#1251)
Some checks failed
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
2025-11-02 15:13:29 +01:00
Matthias Melcher
a128b7c95a Fix UTF-8 documentation'
Some checks failed
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
Fix Unicode buffer allocation
2025-11-01 21:23:18 +01:00
Matthias Melcher
ccbb424046 Add option to uniform line drawing in scaled mode (#167) 2025-11-01 14:33:06 +01:00
Matthias Melcher
d14bd1bfec Fix comment alignment.
Some checks failed
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
2025-11-01 02:13:23 +01:00
Matthias Melcher
418689548f Add more Unicode documentation (2/2) (#125) 2025-11-01 02:12:32 +01:00
Matthias Melcher
2d33e5b90c Improve docs for UTF-8 calls (1/2)(#125) 2025-11-01 01:37:31 +01:00
Matthias Melcher
0ac7e427a1 Avoid crash in Fl_Gl_Window::make_current() (#1287)
Some checks failed
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
2025-10-31 20:37:24 +01:00
MatthiasWM
1ba957eb60 Fix MSVC Level 4 warnings (#1126) 2025-10-31 19:15:38 +01:00
Matthias Melcher
7500b3c540 Add information on Fl_Widget::type_.
Some checks failed
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
2025-10-29 11:51:06 +01:00
ManoloFLTK
445e96f5bb Cont'd "New Wayland subwindow code creates issues with resizes of opengl windows…" (#1311)
Some checks failed
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
2025-10-27 09:33:10 +01:00
ManoloFLTK
efac0cb9ab Fix "New Wayland subwindow code creates issues with resizes of opengl windows…" (#1311)
Some checks failed
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
2025-10-20 15:09:52 +02:00
ManoloFLTK
0ced7991b4 Doxgen documentation: improve section "Buffer factory" 2025-10-20 15:09:52 +02:00
Greg Ercolano
3ee58d2820 Doc fix for issue #1310
Some checks failed
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
2025-10-09 11:29:46 -07:00
ManoloFLTK
a24bb896c5 Simplify and improve function Fl_Wayland_Window_Driver::resize() (#1307)
Some checks failed
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
This modified implementation improves support of subwindows that are moved or resized
above their parent toplevel window. It also significantly shortens and clarifies the source code.
2025-09-30 12:00:18 +02:00
ManoloFLTK
1d44c0ebae Wayland: improve support of draggable subwindow (related to #1307)
Some checks failed
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
2025-09-25 14:43:23 +02:00
ManoloFLTK
b7e52bb03c Underline does not appear in some fonts and scales (Windows,X11-noCairo) (#1308)
Some checks failed
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
2025-09-19 11:10:52 +02:00
ManoloFLTK
9b56da5753 Underline does not appear in some fonts and scales (X11-noCairo) (#1308) 2025-09-19 10:52:07 +02:00
ManoloFLTK
6160673bbf Fix: Underline does not appear in some fonts and scales (WinXP .. Win11) (#1308) 2025-09-17 17:07:45 +02:00
ManoloFLTK
a8244ebcd8 Complete Wayland-related part of issue #1295 - continued 2025-09-15 09:13:45 +02:00
ManoloFLTK
dfd208e171 Complete Wayland-related part of issue #1295 2025-09-15 09:05:16 +02:00
ManoloFLTK
afeaf12934 Update bundled libdecor to last upstream version (August 15, 2025)
Some checks failed
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
2025-09-13 11:46:22 +02:00
ManoloFLTK
5387fec9d9 Various improvements and clarifications to "The Wayland backend for its developer"
Some checks failed
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
2025-09-09 16:11:51 +02:00
ManoloFLTK
e2049c708b Add Doxygen conditional operator to remove warnings about missing references 2025-09-09 10:04:55 +02:00
ManoloFLTK
afc16b3331 Remove from Doxygen files information about removed configure-based build system.
Some checks failed
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
2025-09-08 12:49:41 +02:00
ManoloFLTK
b69286f2ca Remove deprecation warning of graphicsContextWithWindow used with macOS ≤ 10.13 2025-09-08 12:44:55 +02:00
ManoloFLTK
27e02a1541 Update bundled libpng to version 1.6.50 dated 2025-07-01
Some checks failed
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
2025-09-07 18:06:39 +02:00
Albrecht Schlosser
1182cd66ec Make Fl_Table::get_selection() 'const' (#1305)
See also branch-1.4 with FLTK_ABI_VERSION >= 10405:
  commit 9b9426bf6e
2025-09-05 17:38:05 +02:00
ManoloFLTK
8472df82d0 Remove use of deprecated member function Fl_Menu_Item::setonly() 2025-09-05 09:25:59 +02:00
ManoloFLTK
93fae41fc2 Fix "Focus event lost if opening window on macOS" (#1300)
Some checks failed
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
2025-09-03 09:00:34 +02:00
ManoloFLTK
5830c72b58 Restore use of menubar at top of fullscreen window under X11 2025-08-31 16:14:50 +02:00
ManoloFLTK
1a576d43b3 Wayland: account for new Wayfire compositor - cont'd
Some checks failed
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
And allow for vertical display taskbar.
2025-08-29 12:21:15 +02:00
ManoloFLTK
fa1d09b106 Fix "Wayland libdecor crashes with built-in one." (#1299)
Some checks failed
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
2025-08-25 16:24:17 +02:00
Albrecht Schlosser
53f103f2ca Fix typo in documentation
Some checks failed
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
2025-08-22 20:38:59 +02:00
ManoloFLTK
3cf9390e9e Wayland: stop calling non-public libdecor_frame_get_content_{width,height} (#1296)
Some checks failed
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
2025-08-20 08:59:41 +02:00
ManoloFLTK
db94990c1f Fix for Wayland only part of #1295 related to "mangled" events
Some checks failed
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
2025-08-19 14:08:00 +02:00
ManoloFLTK
e42666ba68 Fix part of #1295 related to Wayland and hiding/showing subwindow 2025-08-19 10:22:52 +02:00
ManoloFLTK
05e37453de Fix: Unexpected FL_ENTER after FL_LEAVE when a subwindow is hidden (#1295)
Some checks failed
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
2025-08-18 16:07:59 +02:00
Matthias Melcher
f05ee88359 Fluid: Fix relative project paths in GUI mode #1293
Some checks failed
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
Also fixes native "Save as... project file chooser to start
with current project path.
2025-08-13 21:23:48 +02:00