FLTK logo

Re: [fltk.coredev] Exploration: FLTK platform compatible with both Wayland and X11

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Exploration: FLTK platform compatible with both Wayland and X11 Bill Spitzak Mar 29, 2022  
 
My main comment is that I think "region" is part of the rendering, and you don't seem to have the Cairo version. It may also be ok to scrap support for regions that are not rectangles.

I also feel that part of this would be to make it use Cairo for both X11 and Wayland, and scrap all xlib drawing and especially any API to get at them. This will also remove the need to have server-side offscreen buffers which are completely obsolete and never used by any other software. Cairo (and Windows and Mac) can draw into local memory buffers and these should be used.

On Tue, Mar 29, 2022 at 10:51 AM Gonzalo Garramuño <ggarra13@gmail.com> wrote:


El 29/3/22 a las 14:27, Manolo escribió:
Here is a complete proposal for a hybrid Wayland/X11 FLTK library ready for  release with FLTK 1.4,
along the line sketched by Albrecht above.
It's available in branch wayland of

It contains support for an environment variable FLTK_BACKEND to pilot what is used at run-time:
- if FLTK_BACKEND is undefined, the library uses wayland if available and x11 otherwise;
- if FLTK_BACKEND = wayland, the library uses Wayland if possible and exits with error otherwise;
- if FLTK_BACKEND = x11, the library uses X11 even if Wayland is available;
- if FLTK_BACKEND has another value, the library exits with an error message.

It contains also function fl_disable_wayland(), to be called early in main(), to force an app to use
X11 without using the FLTK_BACKEND variable, as Albrecht suggested.

Great work, Manolo!

--
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/5d50a22e-beb0-99e6-37c1-34d54267533b%40gmail.com.

--
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/CAL-8oAg-D1tp6xTzSbPgiJ9YJe3X8nvePwPmkoVRvxGe2bxhwA%40mail.gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.