FLTK logo

[fltk.coredev] Re: Hybrid Wayland/X11 platform

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: Hybrid Wayland/X11 platform Mo_Al_ Aug 29, 2022  
  This is great news. Thanks for your effort. I tried it and it works well. One hiccup I noticed:
In a program compiled with OPTION_USE_WAYLAND, if the program is started with FLTK_BACKEND=x11, calls to Fl::background(uchar, uchar, uchar) seem to be ignored. I'm not sure why that happens, I tried tracking the FLTK_BACKEND code:
```
  else if (backend && strcmp(backend, "x11") == 0) {
    return new Fl_X11_System_Driver();
  }
```
So the issue might be somewhere else. 

On Monday, August 29, 2022 at 1:39:02 PM UTC+3 Manolo wrote:
Hi devs,

I'd like to give here some information about a recent commit (c720aae) to the FLTK main branch which was done in agreement with Albrecht.

The commit's purpose if to create what can be called a hybrid Wayland/X11 platform.

Resulting FLTK executables will manage their windows with Wayland if Wayland is available at run-time, and will fallback to using X11 if it's not. An environment variable can also be used to force one or another of these outcomes.

The Wayland leg of this 2-legged platform is identical to what was produced by option OPTION_USE_WAYLAND before this commit.

The X11 leg of this 2-legged platform differs somewhat from the regular X11 platform in that it uses Cairo for all its drawing and Pango for all text.

In practical terms, the hybrid platform puts both X11-platform and Wayland-platform code inside libfltk and libfltk_gl.

We, Albrecht and I, believe this is a much stronger way to introduce Wayland support into FLTK since it reproduces what the GTK GUI toollkit does, to support both Wayland and X11-based windowing in the same app.

Comments welcome.

--
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/3c720aac-e22e-4cf6-89f4-7e78ccd2ab28n%40googlegroups.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'.