ManoloFLTK
c61d6bc46a
Wayland: fix regression in menu positioning brought by c43cf2f
2023-08-22 15:33:13 +02:00
ManoloFLTK
ac7c3297fa
Undo commit 0a31225
which killed "caps lock"
2023-08-20 19:20:25 +02:00
ManoloFLTK
0a312259a2
Simpler function process_wld_key(()
2023-08-20 18:58:37 +02:00
ManoloFLTK
5ea7a0465e
Wayland: process number keys independently of keyboard layout
...
The new algorithm supports alternate keyboard layouts, e.g., Dvorak.
2023-08-20 16:29:14 +02:00
ManoloFLTK
fc339b4319
Remove redundant initialisation
2023-08-20 09:34:44 +02:00
ManoloFLTK
442faf9462
Create class function Fl_Wayland_Graphics_Driver::custom_offscreen()
2023-08-20 09:10:55 +02:00
ManoloFLTK
3384776f8e
Improve handling of type Fl_Offscreen under Wayland
...
Type Fl_Offscreen is now to be cast to cairo_t*.
Also, make sure the dimensions of GL windows are
multiples of the screen scale factor.
2023-08-18 18:02:35 +02:00
ManoloFLTK
64f64835dd
Fix typos in names of Doxygen items ( #729 )
2023-08-17 08:22:25 +02:00
ManoloFLTK
336bd01f16
X11 platform: give number keys layout-independent keysym's
...
Without this, the sudoku app is unusable with a French keyboard
2023-08-16 12:35:50 +02:00
ManoloFLTK
754340e101
macOS audio is usable with XQuartz
2023-08-16 11:18:19 +02:00
ManoloFLTK
4aae2d1224
Allow build of sudoku app with macOS + XQuartz
2023-08-16 10:27:41 +02:00
Matthias Melcher
34db9e8bf7
FLUID fix: sets initial size range for windows
2023-08-15 23:12:39 +02:00
Matthias Melcher
e8b378302c
Undoing previous changes
2023-08-15 22:59:07 +02:00
Matthias Melcher
cfe5b2d6e1
THE LAST SIX COMMITS ARE INVALID AND WILL BE REVERTED
2023-08-15 17:52:59 +02:00
Matthias Melcher
3b093e895b
Lot's of changes, must rethink UI.
2023-08-15 17:09:51 +02:00
Matthias Melcher
af22676abf
Missing includes
2023-08-15 17:09:51 +02:00
Matthias Melcher
0de186e614
Sudoku into smaller pieces.
2023-08-15 17:09:51 +02:00
Matthias Melcher
a1b55385e3
Random testing and fixing.
2023-08-15 17:09:51 +02:00
Matthias Melcher
d27188198a
Removed unused code
2023-08-15 17:09:51 +02:00
Matthias Melcher
0c8083a06d
Adding generator
2023-08-15 17:09:51 +02:00
Matthias Melcher
10d9010ed9
Improved, yet compatible, widget callback system using macros ( #729 )
...
* adds FL/fl_callback.macros.H
* adds FL_FUNCTION_CALLBACK_n(widget, function, [type, data])
* adds FL_METHOD_CALLBACK_n(widget, class, instance, method, [type, data])
* adds FL_INLINE_CALLBACK_n(widget, [type, name, data], callback_body)
* adds `examples/callback`
* full documentation
2023-08-15 11:36:58 +02:00
ManoloFLTK
e6440ca0a8
Wayland mouse wheel support: compositors can behave differently
2023-08-15 08:44:53 +02:00
Albrecht Schlosser
3c7610ec23
Handle shift + mousewheel event on Wayland (STR 3521)
...
Pressing the shift key while using the mousewheel changes
horizontal to vertical scrolling and vice versa. This allows users
with a standard mouse with only one scrollwheel to use it for both
scrolling directions.
This concludes "handling shift + mousewheel" for all supported platforms.
2023-08-14 16:57:33 +02:00
Albrecht Schlosser
847901623a
Handle shift + mousewheel event on Windows (STR 3521)
...
Pressing the shift key while using the mousewheel changes
horizontal to vertical scrolling and vice versa. This allows users
with a standard mouse with only one scrollwheel to use it for both
scrolling directions.
Note: other mice that have either two buttons or a scroll ball can
generate both horizontal and vertical scrolling in one action. This
commit does not affect such behavior.
This patch is different than the one in file 'scroll.patch' (STR 3521).
It takes care of distinct mousewheel delta calculation for vertical
and horizontal mousewheels and avoids the "fallthrough" case.
Note: macOS takes care of this, there's no special handling required.
To do: the Wayland platform still needs to be updated.
2023-08-13 17:44:00 +02:00
Albrecht Schlosser
8c5c7aa7f4
Handle shift + mousewheel event on Linux (STR 3521)
...
Pressing the shift key while using the mousewheel changes
horizontal to vertical scrolling and vice versa. This allows users
with a standard mouse with only one scroll button to use it for both
scrolling directions.
Note: other mice that have either two buttons or a scroll ball can
generate both horizontal and vertical scrolling in one action. This
commit does not affect such behavior.
This patch has been provided by Manolo in file 'scroll.patch'
(see STR 3521).
2023-08-13 17:07:26 +02:00
Matthias Melcher
5e484524c8
Fl_Tabs now supports horizontal mouse wheel events.
2023-08-13 14:32:41 +02:00
Aditya Siram
17d0a4cc5f
Fix access to Cairo context.
2023-08-12 23:18:09 +02:00
Matthias Melcher
7cdbc189f0
Another occurrence of bad escape sequence.
2023-08-12 23:07:10 +02:00
Matthias Melcher
01075687cf
#765 : Replaces uncommon escape sequence.
...
Missing return value in docs.
2023-08-12 23:05:03 +02:00
Albrecht Schlosser
76fb2d5b79
Reformat code, remove obsolete comments
...
No effective code changes, i.e. only formatting, indents and comments.
2023-08-10 15:40:45 +02:00
Albrecht Schlosser
dbb77b9657
Improve docs of Fl::hide_all_windows()
...
+ update fluid dependencies
No code changes.
2023-08-10 15:16:01 +02:00
ManoloFLTK
21fdd42838
macOS: add extra comment explaining need for PPC-specific source code
2023-08-09 21:15:20 +02:00
Sergey Fedorov
356ccc4b70
Fl_cocoa.mm: fix Apple macro for PPC case
2023-08-09 21:07:01 +02:00
ManoloFLTK
1943fe54c8
Wayland: fix fl_read_image() from offscreen buffer
2023-08-09 10:31:36 +02:00
Matthias Melcher
06e8cf98a6
FLUID: i18n panel redraw fix
2023-08-08 18:03:23 +02:00
Matthias Melcher
f9e206e013
Missing lines in Unix README
2023-08-08 17:14:08 +02:00
ManoloFLTK
27c3d0b780
Wayland: improve layout of struct fl_wld_draw_buffer
2023-08-08 16:08:53 +02:00
ManoloFLTK
45d119eb3c
Move repeated code to Fl_Wayland_Graphics_Driver::cairo_init()
2023-08-08 09:05:12 +02:00
ManoloFLTK
a98aaecf97
Fix for Broken "cube" demo ( #762 )
...
This commit fixes an error in the cube demo appearing specifically with the AMD Radeon GPU.
2023-08-07 19:16:38 +02:00
ManoloFLTK
f85ee3541a
Wayland: simpler implementation of get_libdecor_plugin_description()
2023-08-06 19:04:16 +02:00
Albrecht Schlosser
5bcd6ca8f2
Revert " #733 partial: Adds rotation gesture event on MacOS"
...
This reverts commit 3049e6394a
as agreed upon in GitHub Issue #733 .
2023-08-05 16:37:38 +02:00
Matthias Melcher
3049e6394a
#733 partial: Adds rotation gesture event on MacOS
2023-08-05 12:19:42 +02:00
ManoloFLTK
2953db58c7
Let FLTK give more detailed description of a Wayland fatal error
...
Wayland protocol error messages now give the protocol name and the error code.
2023-08-05 12:09:13 +02:00
Albrecht Schlosser
157d27606f
Fix typos in documentation of fl_overlay_rect() etc. ( #735 )
...
Thanks to Matt for the improved docs, I just fixed some typos and
added '()'s for better doxygen comments of functions.
2023-08-04 21:30:11 +02:00
Matthias Melcher
c5f5973c90
#735 : better comments on fl_overlay_rect()
2023-08-04 19:30:27 +02:00
ManoloFLTK
c427f037ce
Improve procedure to close decorated Wayland window
...
Libdecor complicates what should be simple, to close a decorated window,
because it uses the titlebar after return from the closing callback function.
Thus, FLTK delays the sending of the FL_CLOSE event to the window,
only when libdecor runs in CSD mode.
2023-08-04 19:14:13 +02:00
Matthias Melcher
ee4ab86c3c
#211 : adds optional parameter for Fl_Input_::drawtext()
...
Does not change the original API but adds a function and
keeps the original automatic.
2023-08-03 17:35:27 +02:00
ManoloFLTK
0bf6a4b044
Slightly improve Fl_Wayland_Screen_Driver::poll_or_select_with_delay()
2023-08-03 08:12:08 +02:00
Matthias Melcher
79d3b8d69d
#762 : saves all frequently used OpenGL attributes
...
When rendering the OpenGL layer, this prepares the FLTK rendering
parameters and restores them after FLTK rendering.
2023-08-02 20:24:46 +02:00
ManoloFLTK
e49f2008a6
Fix Fl_Wayland_Image_Surface_Driver::end_current()
2023-08-02 16:10:41 +02:00