FLTK logo

Re: [fltk.coredev] Towards a Wayland platform for the FLTK library ?

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: Towards a Wayland platform for the FLTK library ? Bill Spitzak Jun 16, 2021  
 
Might be helpful to describe what the differences are, this may indicate mis-use of Wayland and there is some method to make a program work on both versions.


On Wed, Jun 16, 2021 at 8:57 AM Albrecht Schlosser <AlbrechtS.fltk@online.de> wrote:
On 6/16/21 4:03 PM Manolo wrote:
> It turns out I had to introduce slight differences in the FLTK Wayland
> code depending
> on whether it's run with Weston or with Gnome-Wayland. This creates
> the need
> for libfltk to detect whether Weston is running. I have found that
> environment variable
> XDG_SESSION_DESKTOP may be where to get that info. I see its value is
> weston or Ubuntu-wayland or gnome.
> A question to Weston users Albrecht and W.B. :
> Is XDG_SESSION_DESKTOP defined in your setup? and does its value
> contain the string "weston" ?

I haven't tried this yet in my Ubuntu VM, but on my Linux Mint the
answers are unfortunately "yes" and "no". Here's an excerpt of maybe
related environment vars:

DESKTOP_SESSION=cinnamon
XDG_SESSION_DESKTOP=cinnamon
XDG_SESSION_TYPE=x11
WAYLAND_DISPLAY=wayland-0

I executed 'env' in a "terminal" session provided by my weston instance
on the Linux desktop, the output is filtered.

You can see that WAYLAND_DISPLAY is defined. This is the only related
variable that is different than in a normal X session, but that doesn't
help, unfortunately.

--
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/1d723adb-1c3e-7768-9e48-5d0cd89eceab%40online.de.

--
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-8oAiGZ7upqAXqHOnMa%3DZ_sHWbbT%2BwhCYT%2Biy29e%3D%3DBK6U7w%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'.