ManoloFLTK
f72748bb45
Wayland: make OPTION_USE_SYSTEM_LIBDECOR ON by default
...
This commit makes the default FLTK build setting use libdecor
as packaged in Linux when the build system contains packages
libdecor-0-dev and libdecor-0-plugin-1-gtk in version ≥ 0.2.0.
Otherwise, FLTK uses the bundled version of libdecor.
This includes situations where package libdecor-0-dev is
present in an earlier version.
2023-12-02 09:28:08 +01:00
Matthias Melcher
1077d74958
Fixes name conflict in X11 GL swap_interval
2023-12-01 02:33:38 +01:00
Matthias Melcher
a69fc0c9e5
Fixes anonymous union intialisation for C++98
2023-11-30 15:55:37 +01:00
Albrecht Schlosser
727bd94560
Add commandline conversion for Windows (no-op on other platforms)
...
- add Fl::args_to_utf8() to convert commandline arguments to UTF-8
This new function closes the gap that previously only Visual Studio
applications converted their commandlines to UTF-8.
Tested with MinGW, MSYS2/MinGW-w64, and Visual Studio (2019).
2023-11-29 16:29:54 +01:00
MatthiasWM
06e2bd7f0e
Merge branch 'master' of https://github.com/fltk/fltk
2023-11-29 13:16:35 +01:00
MatthiasWM
75c879e2ff
Implements swap_interval for MSWindows.
2023-11-29 13:16:24 +01:00
Matthias Melcher
82e838f1fd
Adds OpenGL swap_interval for Wayland and X11.
2023-11-28 16:35:39 +01:00
ManoloFLTK
59bdb45566
Rearrange PostScript graphics driver code redundant with Cairo driver
2023-11-28 15:05:58 +01:00
ManoloFLTK
12af9dad3e
Remove PostScript graphics driver code redundant with Cairo driver
2023-11-28 09:06:17 +01:00
Albrecht Schlosser
57371365d8
Fix compiler warning, dependencies, and trailing whitespace
...
The benign warning was:
‘Fl_Browser_::hscrollbar’ will be initialized after [-Wreorder]
‘int Fl_Browser_::linespacing_’ ...
2023-11-27 15:33:53 +01:00
ManoloFLTK
6ea31316fb
Cairo graphics driver: Improve drawing of Fl_Pixmap and Fl_Bitmap
2023-11-27 12:15:21 +01:00
ManoloFLTK
f6d2ba651b
Cairo graphics driver: Improve drawing of Fl_Pixmap and Fl_Bitmap
2023-11-27 10:02:59 +01:00
Matthias Melcher
f3348e8120
Adds GL swap control for X11
2023-11-26 21:44:00 +01:00
Matthias Melcher
6817e821af
STR 1373: adds vsync control to OpenGL contexts on macOS
...
Windows and X11 to follow, no idea about Wayland.
2023-11-26 12:37:59 +01:00
ManoloFLTK
4f894e4745
Cairo graphics driver: Improve drawing of Fl_Pixmap and Fl_Bitmap
...
Previously, these objects were drawn slightly blurred on HighDPI.
This commit has them resized to the pixel size of the area where
they are being drawn and then drawn.
2023-11-25 12:09:54 +01:00
ManoloFLTK
eb9dd202b2
Fix Fl_Wayland_Image_Surface_Driver c'tor
2023-11-20 10:56:36 +01:00
ManoloFLTK
dd1c2fc843
Wayland: fix moving top-level window around with mouse
2023-11-15 11:48:45 +01:00
Albrecht Schlosser
4b315d190c
Fix dependencies and whitespace issues
2023-11-14 18:14:48 +01:00
ManoloFLTK
888dc5f5c5
Have libdecor-gtk implement the "GTK Shell" protocol
2023-11-12 19:13:35 +01:00
ManoloFLTK
ce9ba4ba08
Remove unseless code in Fl_Wayland_Screen_Driver.cxx
2023-11-12 08:40:37 +01:00
ManoloFLTK
ff134f0081
Wayland: make fl_close_display() free more resources
2023-11-09 07:58:08 +01:00
ManoloFLTK
5989caf070
Wayland: fix crash in editor after return from switching user
2023-11-08 10:25:08 +01:00
ManoloFLTK
93b26e4d3b
Let Wayland FLTK client apps survive switching user
2023-11-08 09:18:30 +01:00
ManoloFLTK
8b31954d66
"hitting esc to close fltk app blows out the window manager" ( #821 )
2023-11-07 11:32:12 +01:00
ManoloFLTK
acc96cdf56
CHANGES.txt: add Fl_Grid, Fl_Window::maximize()
...
Also, remove stray virtual keyword.
2023-11-06 07:44:55 +01:00
ManoloFLTK
0ae927a00e
Add Fl_Window::maximize() and Fl_Window::un_maximize()
2023-11-05 19:42:55 +01:00
ManoloFLTK
d4d72cfdaf
Related to "FLTK doesn't work normal on platform of rockchip" ( #817 )
2023-11-03 22:10:01 +01:00
ManoloFLTK
eb3afb2033
Wayland copy: destroy data_source object before creating new one
2023-11-03 15:16:36 +01:00
ManoloFLTK
a3f4c62826
Wayland copy: destroy data_source object before creating new one
2023-11-03 13:12:32 +01:00
ManoloFLTK
c0c0ea18aa
Fix "fltk 1.4.x: hangs during paste in fluid code editor" ( #818 )
2023-11-03 12:50:18 +01:00
ManoloFLTK
040607b595
Minor change in Fl_Wayland_Graphics_Driver::copy_offscreen()
2023-11-02 09:08:16 +01:00
ManoloFLTK
0e41ca820d
Remove 81615bb causing GL window to blink when resizing on macOS ( #813 )
2023-10-31 16:52:59 +01:00
ManoloFLTK
99826a5fba
Minor simplification in Fl_X11_Window_Driver::flush_double(int)
2023-10-30 18:27:12 +01:00
ManoloFLTK
06d12892f9
Fix "Wayland: Overlay windows look blurred" - cont'd ( #808 )
2023-10-25 15:20:34 +02:00
ManoloFLTK
35d8504263
Fix "Wayland: Overlay windows look blurred" - cont'd ( #808 )
2023-10-25 13:02:34 +02:00
ManoloFLTK
a5e8fbcca0
Fix "Wayland: Overlay windows look blurred" ( #808 )
2023-10-24 23:09:09 +02:00
ManoloFLTK
0636c0b3e6
Wayland: implement scale factor windows as popups - cont'd
2023-10-24 19:25:59 +02:00
ManoloFLTK
3868ea90bd
Wayland: implement scale factor windows as popups - cont'd
2023-10-24 09:43:23 +02:00
ManoloFLTK
e0aae4401a
Use #ifdef FLTK_USE_SVG instead of #if FLTK_USE_SVG
2023-10-23 16:40:48 +02:00
ManoloFLTK
3307a1281f
Prepare Fl_Wayland_Screen_driver.cxx for removal of Fl_Int_Vector
2023-10-23 16:21:16 +02:00
ManoloFLTK
39a157a7dd
Wayland: implement transient scale factor windows as popups
...
as discussed in issue #794 .
Also, fix for macOS the use of the FL_FOCUS event for these transient windows
2023-10-23 11:15:04 +02:00
Albrecht Schlosser
1209e9dcd7
Make Fl_String and Fl_Int_Vector private ( #789 )
...
- add CMake option 'OPTION_USE_STD'
- add configure option '--enable-use_std'
- move FL/Fl_String.H to src/Fl_String.H
- move FL/Fl_Int_Vector.H to src/Fl_Int_Vector.H
- remove Fl_String from demo program examples/callbacks.cxx
- remove Fl_Int_Vector from public header FL/Fl_Table.H
- some methods of Fl_Table are no longer inline
- add CMake option OPTION_USE_STD to allow std::string in some
selected functions and methods
Experimental, may be removed before release:
- use either Fl_Int_Vector or std::vector in Fl_Table depending
on CMake OPTION_USE_STD or configure --enable-use_std
Move all fl_filename* functions that use Fl_String to fluid
Main changes in fluid:
- add fluid_filename.h and .cxx
- include "fluid_filename.h" rather than <FL/filename.H>
Update fl_input(), fl_password() and test/ask
- add maxchar parameter to fl_input() and fl_password()
- fl_input_str() and fl_password_str() are optional and return
std::string if enabled (FLTK_USE_STD)
2023-10-22 19:35:17 +02:00
ManoloFLTK
9f141aefc6
Fix drawing points in complex shape mode with Cairo ( #792 )
2023-10-17 21:14:34 +02:00
ManoloFLTK
50b04b565b
Fix Crashes and warnings when Fl_Double_Window is smaller than 1x1 ( #798 )
2023-10-17 09:37:01 +02:00
ManoloFLTK
ae4ed35229
Add virtual void Fl_Graphics_Driver::draw_circle()
2023-10-16 20:53:55 +02:00
ManoloFLTK
ded5839d9c
Improve Fl_Wayland_Window_Driver::take_focus()
2023-10-14 09:43:35 +02:00
Albrecht Schlosser
01038e832a
Fix trailing whitespace and dependencies
2023-10-13 19:08:30 +02:00
ManoloFLTK
c274ae1365
Remove obsolete comments
2023-10-13 15:30:12 +02:00
Matthias Melcher
c41b3a1a64
Fixes fl_filename_relative on Linux, Mac, and Windows ( #787 )
...
* fixed filename_relative for Linux
* Fixing fl_filename_relative for MSWindows.
* Update documentation
* Fixed docs.
* Fixes Linux and macOS builds
2023-10-11 23:26:36 +02:00
ManoloFLTK
bb7e1635ad
macOS: remove a bunch of deprecation warnings
2023-10-09 11:16:36 +02:00