|
|
On 1/5/22 6:53 AM Manolo wrote:
Le mardi 4 janvier 2022 à 20:12:52 UTC+1, Albrecht Schlosser a
écrit :
On 1/4/22 5:07 PM Manolo wrote:
I'd like to invite fellow FLTK
developers to vote about
adding a Wayland platform to the FLTK library.
I'm basically +1 on adding Wayland but I'd like to test
before I can make my final vote.
I fully understand some time is necessary before the vote.
Here are my first results (I'll continue testing later). I tested on
Ubuntu 20.04 with Wayland desktop.
(1) The window title fonts are way too large (obviously in CSD
mode). Can we reduce the font size?
(2) There doesn't seem to be an appropriate double clicks timeout.
You can click twice with a delay of 5 seconds and the second click
is still recognized as a double click.
* Some platform-related code is identical for the Wayland
and X11 platforms.
Timeout support is in that case.
The new code defines a new class, Fl_Nix_System_Driver,
where all such code is located.
After inclusion of the Wayland branch, the X11-platform
code will also use
class Fl_Nix_System_Driver.
This is an area where your and my changes conflict. I
need to evaluate the changes...
OK. Let me know if I could help by any change within the
Wayland code.
I'm looking into it...
FYI: I rewrote the entire timeout handling code which is now almost
platform independent. The platform specific code calls only a few
methods of the new internal class Fl_Timeout. I still need to solve
some minor problems though, I'll let you know how to proceed as soon
as I have a stable solution.
The goal here is to name a class that
would be used by the X11 and Wayland platforms
to contain code useful to both. This means, used on Unix
and Linux but not on macOS. [...]
The net result is this class hierarchy :
Fl_System_driver
++++ Fl_Posix_System_driver
++++++++ Fl_Nix_System_driver
++++++++++++ Fl_X11_System_driver
++++++++++++ Fl_Wayland_System_driver
++++++++ Fl_Darwin_System_driver
++++ Fl_WinAPI_System_driver
I've proposed Fl_Nix_System_driver following the practivce
to name *Nix the Unix+Linux OS collection.
Aternative name suggestions are very welcome.
I don't know a better name, I wouldn't mind if we kept it, although
I'm also open for better suggestions.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/ad91c9e4-f3b9-1bf6-22fa-6fa40c282800%40online.de.
[ Direct Link to Message ] | |
|
| |