Commit Graph

11572 Commits

Author SHA1 Message Date
Greg Ercolano f44c163234 Add example to build w/warnings+fltk examples 2024-06-24 21:14:51 -07:00
ManoloFLTK c1a950e25f Navigation in menubar: wrap around when using arrow past end or start of menubar.
See "Menu navigation in FLTK is different from Ubuntu X11 navigation" in fltk.general.
Menubar wrapping is what macOS and gnome applications do.
2024-06-24 16:18:56 +02:00
ManoloFLTK 0bb559c803 Wayland: account for old versions of the GTK shell protocol - cont'd
Not easy to get it right in absence of any documentation for "GTK Shell" protocol.
2024-06-24 14:52:08 +02:00
ManoloFLTK 8250cc7f7b Wayland: account for old versions of the GTK shell protocol - cont'd 2024-06-24 09:30:07 +02:00
ManoloFLTK 1c482b5dbf Wayland: account for old versions of the GTK shell protocol 2024-06-23 18:37:21 +02:00
ManoloFLTK 9c2d38fe3c Derive Fl_File_Chooser.cxx from Fl_File_Chooser.fl 2024-06-23 18:07:32 +02:00
ManoloFLTK d5f7a3a68b Remove in Fl_File_Chooser.fl max size values from Fl_Window::size_range() call
Such max values must be checked to be larger than min values, else error may occur.
2024-06-23 18:03:39 +02:00
ManoloFLTK 54cff14f87 Fix for "Fl_Pack should override clear() to set resizable(0)" (#993) 2024-06-23 08:50:29 +02:00
ManoloFLTK 7a35e256bc Wayland: stop key repeats when focus leaves a window 2024-06-23 08:05:53 +02:00
ManoloFLTK 115ae94de0 Wayland: use serial rather than time argument of wl_keyboard_key() to support key repeats 2024-06-22 15:57:34 +02:00
Albrecht Schlosser f7dbaba3ef Fix typo reported in fltk.general
... by Brian Larsen
2024-06-22 11:49:09 +02:00
Albrecht Schlosser b8cba7c41e Update dependencies 2024-06-21 18:16:44 +02:00
Albrecht Schlosser d9c8cebfbe Remove trailing whitespace
no code changes
2024-06-21 18:10:33 +02:00
Albrecht Schlosser 97bab9abbd Fix compiler warning on macOS: remove unused variable 2024-06-21 18:08:49 +02:00
Albrecht Schlosser a053b42445 Fix Wayland memory leak (#991) 2024-06-21 17:59:50 +02:00
Albrecht Schlosser 456d53c403
Add Fl::remove_next_timeout(...) to remove only one timeout (#992)
This method also returns the data pointer of the removed timeout.

This new method is generally useful for user code and particularly
necessary to fix issue #991.

Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2024-06-21 17:35:01 +02:00
ManoloFLTK 5ee1c0c9df macOS: fix changes to Fl_X::first with front window 2024-06-21 15:37:34 +02:00
ManoloFLTK 4aa321fe68 Avoid ScreenCaptureKit bug that may modify a non-resizable window's styleMask 2024-06-19 11:21:58 +02:00
ManoloFLTK 152cc52d89 Wayland: capture window titlebar as depth-4 image 2024-06-17 15:35:02 +02:00
Albrecht Schlosser 58016cf219 Update abi-compliance-checker howto
Add documentation link.

Thanks to Greg for mentioning this in fltk.coredev.
2024-06-17 10:24:20 +02:00
ManoloFLTK 41ffc2c485 Fix "Under Ubuntu 22.04 any FLTK application appears in the Appmenu as 'FLTK'" 2024-06-16 23:22:58 +02:00
ManoloFLTK 377ff11ec9 Link frameworks used by recent macOS versions with -weak_framework
This allows FLTK apps to use the recent frameworks when they run on recent
macOS versions even if the minimum supported macOS version of these apps is more
ancient than the framework.
2024-06-16 19:48:55 +02:00
Matthias Melcher d137ddfa7d Improve Fl::option documentation. 2024-06-15 15:16:42 +02:00
Albrecht Schlosser 3cc5c090f9 X11: update XDND protocol from version 4 to 5 (#988)
Some applications insist on sending XDND protocol version 5 and
rejected (ignored) FLTK as DND receiver because we allowed only
protocol version 4. Known apps: Google Chrome and Chromium.

This commit enables XDND protocol version 5 in FLTK programs as
DND receiver.
2024-06-15 12:11:41 +02:00
ManoloFLTK 7d98413d46 macOS 15.0 Sequoia: fix capture of window titlebars
The previous procedure using CGWindowListCreateImageFromArray()
is obsoleted in macOS 15.0 .
The new procedure requires an additional framework: ScreenCaptureKit;
FLTK uses it only for macOS ≥ 15.0
2024-06-14 11:55:53 +02:00
ManoloFLTK 7104746413 Fix crash in howto-drag-and-drop under macOS 2024-06-11 15:04:48 +02:00
ManoloFLTK d7d1d0d6b2 Wayland: fix interactive moving and resizing of a subwindow - cont'd (#987) 2024-06-11 11:37:45 +02:00
ManoloFLTK b17357339f Fix: Changing default color palette affects opengl child drawing on Wayland (#989) 2024-06-09 20:04:23 +02:00
ManoloFLTK e5693efb75 Wayland: support DnD from X11-FLTK to Wayland-FLTK 2024-06-08 09:38:28 +02:00
ManoloFLTK 651d9f3e79 Wayland: add necessary calls to gtk_surface1_release() 2024-06-04 16:53:10 +02:00
ManoloFLTK e2eeb36883 macOS: remove use of deprecated [NSBox setBorderType:] method 2024-06-03 17:36:08 +02:00
ManoloFLTK 6712130f22 Document how to control window location in screen under Wayland 2024-06-03 15:05:04 +02:00
ManoloFLTK ce46b4b68b Wayland: fix interactive moving and resizing of a subwindow (#987) 2024-06-03 09:50:41 +02:00
ManoloFLTK d792ed21f5 Fix Child Windows under Wayland are clipped on resizing … (#987) 2024-06-02 08:28:40 +02:00
ManoloFLTK 482da12f71 Fix: Zero-sized borderless window causes high cpu usage on windows (#985) 2024-06-01 16:48:27 +02:00
ManoloFLTK be5c82b5e5 Reflect libdecor date in bundled-libs.dox 2024-06-01 10:52:23 +02:00
ManoloFLTK 5365aefc6e libdecor: update to upstream commit c2bd8ad6 (31-may-2024) 2024-06-01 10:12:50 +02:00
ManoloFLTK 04949f1349 Fix typo in doc of Fl_Double_Window::as_double_window() 2024-05-30 08:26:57 +02:00
ManoloFLTK 70c6f2ce12 Fix: Wayland sends wrong events after an FL_DRAG of a top window - cont'd (#983) 2024-05-28 22:28:54 +02:00
ManoloFLTK 9c8977eff1 Fix: Wayland sends wrong events after an FL_DRAG of a top window (#983) 2024-05-28 15:33:33 +02:00
ManoloFLTK f3f69b892d Remove useless Fl_Window_Driver accessors after new member Fl_Window::get_size_range() 2024-05-27 11:39:27 +02:00
ManoloFLTK c1333a2dec Wayland documentation: more about opening display connection 2024-05-27 10:40:24 +02:00
Matthias Melcher e325c2e4a0 Adding new call `Fl_Window::get_size_range()`, #981 2024-05-26 17:50:47 +02:00
Matthias Melcher 2bab8c94ff Revert InputChoice from fd791a0
A change to Fl_Input_Choice callbacks slipped into
fd791a068e.
This Commit removes that change. It may need to be
fixed and reapplied later in its own Commit.
2024-05-26 17:00:41 +02:00
ManoloFLTK 00dc35097b Control screen used by Fl_Menu_Bar::play_menu() - cont'd 2024-05-24 13:20:58 +02:00
ManoloFLTK a09d43eb40 Fix: Fl_Browser unexpected display of empty lines ("@." vs "") (#979) 2024-05-24 10:03:37 +02:00
ManoloFLTK 0a6610c480 Control screen used by Fl_Menu_Bar::play_menu() 2024-05-23 16:38:51 +02:00
ManoloFLTK 614d551d05 Wayland documentation: further details about throttling window redraws 2024-05-22 13:13:29 +02:00
ManoloFLTK df3c875453 Beef up documentation about throttling window redraws under Wayland 2024-05-21 15:28:18 +02:00
ManoloFLTK 8807efe939 More details about handling modal windows and various gnome versions 2024-05-21 09:23:24 +02:00