Commit Graph

3985 Commits

Author SHA1 Message Date
Albrecht Schlosser
16f9e2e344 Finish release 1.3.10
- update CHANGES, CREDITS, and dependencies
- update "Revision" number in PDF docs (title page)
- fix typos
2024-11-16 18:36:26 +01:00
Albrecht Schlosser
86a98e2054 Finish "Backport support for mouse buttons 4+5" (#1076, #1068)
- documentation updates, alignment, formatting, version numbers
- fix widget order in test/keyboard_ui.fl
- replace hard-coded bit mask with 'FL_BUTTONS'
- add missing macro definition 'GET_XBUTTON_WPARAM' for MinGW
- reorder 'case' statements for button events (like in master)
2024-11-14 18:07:34 +01:00
Adam Halim
f83c0042f3 Backport support for mouse buttons 4 + 5 (#1076, #1068)
This is a backport of PR 1081 by @Albrecht-S from master to branch-1.3.
2024-11-14 18:07:34 +01:00
Albrecht Schlosser
00df79bfbb Keep sending FL_DRAG until all mouse buttons are released
> Backported from branch 'master' (1.4.0),
> commit 1259275316 (Jul 14, 2023)

The old version would send FL_MOVE events after dragging with more
than one mouse buttons pressed, as soon as the first button was
released.

The new version sends FL_DRAG until the last mouse button is released
and then FL_MOVE, as usual.

This change affects dragging only if more than one mouse button is
pushed and held while dragging. The order of pushing and releasing
mouse buttons does not affect the behavior.
2024-11-14 16:13:11 +01:00
ManoloFLTK
9560740b8e Fix X11: test/gl_overlay stale overlay rendering (#1111) 2024-11-08 13:00:51 +01:00
ManoloFLTK
b1693b41f4 macOS fix for "Fl_Window::cursor(...) does not work reliably on some platforms" (#1082) 2024-10-04 23:38:33 +02:00
Albrecht Schlosser
3dfa0c4b05 Remove unused function after commit f323257cbc
Backported from 1.4.0
2024-08-07 14:56:04 +02:00
ManoloFLTK
1699580c38 Crash in macOS when switching fullscreen window between displays (#1022) 2024-07-29 08:07:17 +02:00
ManoloFLTK
f323257cbc Simplify creation of OpenGL contexts under X11 platform (#1005) 2024-07-17 17:36:42 +02:00
Albrecht Schlosser
f34719851e Fl_File_Chooser: set insert position to end of string (#1004)
... after filename "expansion" with current directory.

Backported from 1.4: commit ecb3c9c6fc.
Code modified to work with 1.3.x.

Updated CHANGES.
2024-07-04 16:29:59 +02:00
ManoloFLTK
20e2879ea8 macOS: let fullscreen windows have access to the system menubar 2024-05-22 10:37:18 +02:00
Albrecht Schlosser
908d900794 Bump version numbers from 1.3.9 to 1.3.10 2024-05-14 15:57:04 +02:00
Matthias Melcher
20138be66b macOS: Fix color component mixup in gl_draw text rendering #947 2024-04-05 18:02:39 +02:00
ManoloFLTK
807d205a3c Fix "FLTK on NetBSD very slow on X11 with Unicode locale" (#935) 2024-03-18 16:56:44 +01:00
Albrecht Schlosser
4f787cc1f0 Fix a bunch of compiler warnings (backported from 'master')
Many warnings were benign, some were false positives, but better
fix a warning than miss an error.

test/fractals.cxx: backported from 1.4
2024-03-16 13:53:01 +01:00
Matthias Melcher
84ecb32c98 Fix OpenGL context caching on macOS (#737) 2024-01-30 15:51:37 +01:00
Matthias Melcher
89133cf1e1 Fix shared image handling in file chooser (#887) 2024-01-27 17:39:13 +01:00
Matthias Melcher
548fe016d3 Fix crash in Fl_Preferences for deformed group name (#891) 2024-01-19 11:50:34 +01:00
Matthias Melcher
b2dc8217a1 #877: Fixes Fl_Shared_IMage refcount 2024-01-14 16:56:01 +01:00
Albrecht Schlosser
c17d42c7e7 Fix compiler warnings, backported from 1.4 (master)
Also update CHANGES file.

The compiler warnings were issued by MinGW with gcc 9.2.0.

Note: There are lots of compiler warnings left when building with
  Visual Studio and/or NMake but these will not be fixed in 1.3.9.
  All warnings have been fixed in 1.4.0 (current git 'master').
2023-12-07 19:32:51 +01:00
Matthias Melcher
783d50e6b1 #188: Fixes reference count for Fl_Shared_Image 2023-12-06 16:27:10 +01:00
ManoloFLTK
b641d378c2 Remove unused variables compilation warnings under macOS 2023-12-06 14:59:47 +01:00
Matthias Melcher
f655a4d939 #188: Fixes search for Fl_SHared_Image original 2023-12-06 14:29:32 +01:00
Albrecht Schlosser
7c3489061e Fix several compiler warnings 2023-12-04 17:40:31 +01:00
Albrecht Schlosser
5a5baca1e2 Bump version numbers, prepare release 1.3.9
Still to do: update bundled libs, maybe more.
2023-12-02 22:36:53 +01:00
Albrecht Schlosser
fc6675aa87 Fix doxygen warnings 2023-12-02 21:38:15 +01:00
Albrecht Schlosser
84c9432d2a Fix "gtk+ rendering" (GitHub Issue #443)
This commit is a minimal fix for issue #443.

A more complete fix is in Git 'master', i.e. in FLTK 1.4.0.
2023-12-02 19:55:27 +01:00
ManoloFLTK
1b5db5519d Add support for macOS Sonoma 14 2023-10-25 11:29:07 +02:00
Albrecht Schlosser
53801fbf74 Backport warning fixes from 1.4.0 in src/fl_draw.cxx (#693)
- update header comment and copyright year
- add casts to fix compiler warnings
- fix "use after free" warning
- remove dead code
- reformat another unrelated statement
2023-03-04 18:18:49 +01:00
ManoloFLTK
4e9ed130df Fix "Focus is lost leaving full screen on macOS 13" (#608) 2022-12-30 18:24:11 +01:00
ManoloFLTK
82399fab9e Add support of macOS Ventura 13.0 2022-11-13 08:23:34 +01:00
Albrecht Schlosser
40b82358ed Fix crash if a program exits before it opens a window (STR 3484).
This crash and the fix are Windows specific.

Backported from master (1.4.0), commit 339ba4c8b3 (Aug 6, 2018).
2022-08-22 15:37:32 +02:00
ManoloFLTK
df2b94bfa4 Issue #469: Fl_Sys_Menu_Bar menu item shortcuts using Escape or Tab do not work on Mac 2022-07-28 08:22:20 +02:00
Albrecht Schlosser
8ae8370dcf X11: Suppress compiler warnings when using gcc or clang
Suppress warning [-Wdeprecated-declarations] regarding function
  XKeycodeToKeysym()

Backported from master branch.

Update 'CHANGES' for a potential release 1.3.9
2022-07-22 18:03:23 +02:00
Albrecht Schlosser
8b5da69d53 Backport X11 INCR protocol fixes from 1.4.0 (issue #451)
Reading large selections via X11 INCR protocol (data sent by other
processes) could cause invalid write access and eventually segfaults.
For more information see GitHub issue #451 and these commits in
FLTK 1.4 (master branch):
 - c555629162
 - ef72df0dc7

This commit fixes the main issues when reading large selections via
INCR protocol but does not add functionality to *write* large
selections via INCR protocol.
2022-07-22 17:47:08 +02:00
ManoloFLTK
d60d2ca26d Fix for issue #454 : crash in Fl::get_font_name(). 2022-06-27 13:23:33 +02:00
ManoloFLTK
27846381ae Fi xfor issue #452: Fl::get_font_name failure on OS-X. 2022-06-24 19:42:02 +02:00
ManoloFLTK
80e4dd20dc Fix for issue #373 apparent with macOS platform and SDK ≤ 10.13
Many thanks to @CendioOssman for finding the cure.
2022-02-08 07:09:40 +01:00
ManoloFLTK
bc2f1f6818 Fix fullscreen window level corner cases on macOS - cont'd
See long discussion in PR#277 at
https://github.com/fltk/fltk/pull/277
2021-12-29 17:07:53 +01:00
ManoloFLTK
9f2929ee45 macOS platform: fix for issue #325 Disabling IM disables Greek and Cyrillic layouts
Thanks to Pierre Ossman who gave the fix.
2021-12-25 10:06:42 +01:00
YX
1b6ce05903 Fix IME problem (issue #270) 2021-12-13 08:20:03 +01:00
Albrecht Schlosser
92b6962495 Add new dialog fl_choice_n() with extended return values (#282)
This new dialog enables the user program to distinguish whether the
user closed the window by hitting Escape, clicking the window's
close button, or using the "cancel" button with return value 0
as requested by GitHub Issue #282 "fl_choice() doesn't tell you
if the dialog was closed".
2021-11-20 14:42:56 +01:00
Albrecht Schlosser
6fb92e441e Bump version numbers, prepare release 1.3.8 2021-11-05 18:50:55 +01:00
Albrecht Schlosser
a394e7aff0 Fix compiler warnings (backported from 1.4) 2021-11-05 18:50:55 +01:00
ManoloFLTK
e02032bd05 Fix for issue #279. 2021-11-05 15:57:45 +01:00
ManoloFLTK
940edc222f Allow building with non-Apple compiler that may not support blocks. 2021-11-05 14:31:11 +01:00
Albrecht Schlosser
12db27551c Fix build with FLTK_CONSOLIDATE_MOTION turned off (X11)
Up to 1.3.7 this was obviously never turned off or nobody noticed
the compilation problems.
2021-11-05 13:44:54 +01:00
Albrecht Schlosser
636cca4a2b Make "FLTK_CONSOLIDATE_MOTION" user-definable (issue #76)
This undocumented macro is used on X11 and macOS platforms to
consolidate mouse move events, i.e. to collect some events and send
them later as one event. The old macro name CONSOLIDATE_MOTION has been
renamed to FLTK_CONSOLIDATE_MOTION since it is now a "global" symbol.

Users can define FLTK_CONSOLIDATE_MOTION in their build system, e.g.
on the compiler commandline, as 0 or 1 to disable or enable this
feature, respectively.

For historical reasons the default is 0 (OFF) on macOS and 1 (ON) on
X11 in FLTK 1.3. In FLTK 1.4 the default will always be 0 (OFF).
2021-11-05 12:40:34 +01:00
ManoloFLTK
4cac99ed59 Fix issue#288.
Thanks @CendioOssman for pointing to it and its solution.
2021-11-04 16:09:59 +01:00
ManoloFLTK
e0626e025e Attempt to fix issue#287 about fullscreen mode.
The fix is to reproduce what is in main branch 1.4
2021-11-04 15:51:48 +01:00