ManoloFLTK
e4b0668fad
X11: simpler code to capture window decoration under xfce
2024-04-27 08:13:17 +02:00
ManoloFLTK
02373a9dea
X11: fix capture of window decoration under xfce
2024-04-26 16:53:08 +02:00
ManoloFLTK
c0d2aa3f09
Fix problem in window titlebar capture under X11.
2024-04-25 15:12:34 +02:00
Albrecht Schlosser
d3a3ab40b7
Replace setenv() with putenv() on old systems (+937)
...
Add system check for setenv() function in configure and CMake.
2024-03-18 22:29:50 +01:00
Albrecht Schlosser
29aba21b78
Fix memory leak in Fl_X11_Screen_Driver.cxx ( #934 )
...
Fl_X11_Screen_Driver::set_spot() did not free the list of missing
fonts returned by XCreateFontSet().
This commit also initializes some variables and reformats code, but
the only notable change is to call XFreeStringList(missing_list) if
missing_list is not NULL.
2024-03-16 15:26:07 +01:00
ManoloFLTK
63b0bcf599
KDE+X11 keyboard stops working after menu display ( #904 )
2024-02-11 08:23:23 +01:00
Matthias Melcher
faff63130c
Fix cached GL context on all platforms ( #737 )
2024-01-29 14:01:41 +01:00
Albrecht Schlosser
76a2c95f07
Fix a typo, trailing whitespace, and dependencies
2023-12-21 14:03:04 +01:00
ManoloFLTK
96bacd3f9d
Procedure to instruct FLTK to use given X11 connexion ( #149 )
2023-12-19 15:48:26 +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
Matthias Melcher
82e838f1fd
Adds OpenGL swap_interval for Wayland and X11.
2023-11-28 16:35:39 +01:00
Matthias Melcher
f3348e8120
Adds GL swap control for X11
2023-11-26 21:44:00 +01:00
ManoloFLTK
0ae927a00e
Add Fl_Window::maximize() and Fl_Window::un_maximize()
2023-11-05 19:42:55 +01:00
ManoloFLTK
99826a5fba
Minor simplification in Fl_X11_Window_Driver::flush_double(int)
2023-10-30 18:27:12 +01:00
Albrecht Schlosser
1fd6f0dd3a
Fix STR 3458: "GLUT compatibility mode segfaults"
...
... "when there's no current window".
Silently ignore GLUT function calls that need a current window if the
current window is NULL, return 0 from functions that return an 'int'.
Check if window is shown in Fl_X11_Gl_Window_Driver::swap_buffers().
This would issue "XRequest.nnn: GLXBadDrawable 0x0" on X11 otherwise.
Note: the chosen implementation to ignore GLUT calls silently appears
to be compatible with GLUT (3.7) whereas FreeGLUT 3.0 would issue error
messages and exit. The latter could be implemented as well but would
be much more work.
2023-10-07 17:14:11 +02:00
ManoloFLTK
4bf9172a8e
Replace internal fl_create_offscreen() calls by new Fl_Image_Surface
2023-04-23 10:03:02 +02:00
ManoloFLTK
fe972185c0
Fl_Window_Driver::destroy_double_buffer() does not need overrides
2023-04-21 16:27:08 +02:00
ManoloFLTK
0fe118aa94
Remove duplication of Pango standard font names
...
And move each array of standard font names to appropriate font-related source file
2023-04-14 08:15:50 +02:00
ManoloFLTK
868ab9696f
Rename class Fl_Display_Cairo_Graphics_Driver to Fl_X11_Cairo_Graphics_Driver
2023-02-14 11:52:21 +01:00
ManoloFLTK
f3e21ddad2
Fix for "Rename Fl_X* Fl_Window::i private class member" ( #223 )
2023-01-13 21:16:17 +01:00
ManoloFLTK
b8d9f2282f
Remove useless #include directives
2023-01-12 10:33:41 +01:00
ManoloFLTK
9bdaf5a84d
Virtual member Fl_Window_Driver::makeWindow() now returns void
2023-01-09 17:35:38 +01:00
Matthias Melcher
44c874b731
Use FL_OVERRIDE for all overridden virtual methods ( #611 )
...
FL_OVERRIDE is defined as `override` for C++11 and higher
FL_OVERRIDE is defined as `override` for VisualC 2015 and newer
Don't interfere with Fl_Widget::override()
2022-12-30 19:14:36 +01:00
Matthias Melcher
a23c77c5a1
Defer opening the display as much as possible ( #586 )
2022-12-10 16:21:07 +01:00
ManoloFLTK
67817f696c
Remove small files fl_XXX_gl_platform_init.cxx
...
The single-function content of these files is moved to Fl_XXX_Gl_Window_Driver.cxx.
2022-11-30 17:51:35 +01:00
Albrecht Schlosser
74b9d5fb05
Remove redundant doxygen docs of fl_beep()
...
Also add a comment to all platform driver implementations.
2022-11-11 16:52:08 +01:00
ManoloFLTK
6e9f72adce
Delete src/drivers/X11/Fl_X11_System_Driver.*
2022-11-07 06:54:09 +01:00
ManoloFLTK
37bf3835b0
Create class Fl_Unix_Screen_Driver used by X11 and Wayland platforms
2022-11-07 06:49:40 +01:00
ManoloFLTK
e69d45cde8
Make Fl::display(const char *) active also for the Wayland platform.
2022-10-23 12:19:44 +02:00
Albrecht Schlosser
723d8caa9d
Fix "Fl::focus() changes Fl_Group::current() to null" ( #515 )
...
This issue is caused by setting `Fl_Group::current(0);` in
Fl_Window::show(), i.e. in Fl_X::make_xid(..) in an attempt to
fix a "very common user bug: forgot end()". As long as this is
done, this commit fixes the issue.
For details see GitHub issue #515 .
2022-10-16 23:23:04 +02:00
ManoloFLTK
1fc23f8506
Clean use of virtual GLContext Fl_Gl_Window_Driver::create_gl_context().
2022-10-02 13:35:53 +02:00
ManoloFLTK
3225afaeec
Remove use of class Fl_Window_Driver inside libfltk_gl
2022-09-27 16:51:35 +02:00
ManoloFLTK
0fdc88d2d7
GL3 support under X11: ask for compatibility profile if possible.
2022-09-23 18:09:40 +02:00
ManoloFLTK
b75d7526fd
Simplify Fl_Window_Driver::screen_num() member functions.
2022-09-01 11:55:41 +02:00
ManoloFLTK
b4686f0e5b
Restore building with --disable-xft
2022-09-01 11:45:27 +02:00
ManoloFLTK
c720aae515
Make hybrid Wayland/X11 platform.
2022-08-29 12:15:32 +02:00
ManoloFLTK
7deff86b5d
Remove FL_EXPORT qualifier from platform-specific class declarations.
2022-08-20 10:16:32 +02:00
Albrecht Schlosser
3560ff450f
Remove empty line
2022-07-16 16:52:26 +02:00
Leon Winter
9d27ec8754
beep: use maximum loudness for error, otherwise system-default
2022-07-16 16:52:26 +02:00
Leon Winter
3dd8c314d6
Let beep use system default settings
...
Please note that the parameter 'percent' of XBell(3).
Given the value of 100, the system defined setting
(normally specified via xset) is ignored and the
percent of 100 is used instead. When calling the
bell from fltk with FL_BEEP_DEFAULT I would expect
to get the default (system specified) percent setting.
2022-07-16 16:52:26 +02:00
Albrecht Schlosser
79ce6547ce
Fix non-xft build referencing fl_get_font_xfld() ( #461 )
...
This is only one part of issue 461 which describes two build errors
on "Raspberry Pi4 bullseye". It turned out that the build didn't
find Xft.
2022-07-09 22:05:46 +02:00
ManoloFLTK
02870242ee
Move input method support to Fl_Screen_Driver from Fl_Graphics_Driver
2022-06-19 10:23:24 +02:00
ManoloFLTK
1d64b78554
Change protection levels in classes Fl_XXX_Gl_Window_Driver
2022-05-07 15:16:29 +02:00
ManoloFLTK
217120c281
Move struct shape_data_type inside Fl_XXX_Window_Driver.
2022-05-05 18:57:07 +02:00
ManoloFLTK
fad867a5d3
Modify test/cairo_test.cxx to show roles of OPTION_CAIRO and OPTION_CAIROEXT.
...
Also make clear that these options require, for now, Fl_Double_Window to work cross-platform.
2022-04-12 09:20:34 +02:00
Albrecht Schlosser
385f0d5b4d
Rename remaining FLTK_USE_CAIRO to FLTK_HAVE_CAIROEXT
...
Thanks to Manolo for finding this.
2022-04-07 15:14:30 +02:00
Albrecht Schlosser
dacf243889
Fix build w/o Xft
2022-04-07 03:40:43 +02:00
ManoloFLTK
49dae86edf
Fix for issue #418 : some warnings about unused functions.
2022-03-21 12:12:07 +01:00
ManoloFLTK
a9412b41bb
Issue #359 RFE: access the MacOS windowid .
2022-03-21 11:41:51 +01:00