On 4/12/24 08:51, Gonzalo Garramuño wrote:
I guess Ubuntu 22.04.4 LTS is not new enough for FLTK 1.4.
I'd say it's still experimental, mainly for developers to test on the most stable Wayland environment so far, I suppose. I tried using it as a desktop for a few weeks but it kept getting in the way of productivity. As a build system it's fine, but as a day-to-day workstation, too much missing/broken stuff related to wayland's particulars, (such as missing screenshot features in gimp, which I need all the time, and the separate snapshot tool that does work is to work with) and window manager limitations that need better solutions. Not too bad for a new from-the-ground-up windowing system, and a completely different paradigm from X11. Heck, for many many years X11 for Linux was buggy as hell, and went through a few different iterations before it settled on which implementation it is now. (Remember XFree86? %^/ )
On 4/12/24 08:51, Gonzalo Garramuño wrote:I guess Ubuntu 22.04.4 LTS is not new enough for FLTK 1.4.
Well, the reason I am now on Wayland again is that the most recent unattended Ubuntu update broke Xorg and Gnome (they now suffer from slowdowns, particularly with my application's FLTK Tree widget linked to a Wizard). It works fine on Xfce and XWayland thou.I'd say it's still experimental, mainly for developers to test on the most stable Wayland environment so far, I suppose. Heck, for many many years X11 for Linux was buggy as hell, and went through a few different iterations before it settled on which implementation it is now. (Remember XFree86? %^/ )
-- Gonzalo Garramuño ggar...@gmail.com
On 18/4/24 14:40, Manolo wrote:
> With FLTK commit e6957fc you should be able to use the system version
> of libdecor
> both in FLTK and GLFW. This should fix the incompatibility you report.
>
It did not work. I think you misunderstood. I am on Ubuntu 22.04.4 LTS
which does not have a libdecor >= 0.2.0.
Also, I tried 15d9a350bf715357dec12810dcfe51ba8defbd5d and it choked
with a cmake error:
CMake Error at
/home/gga/code/applications/mrv2/BUILD-Linux-amd64/Release/install/share/fltk/FLTK-Targets.cmake:60
(set_target_properties):
The link interface of target "fltk::fltk" contains:
PkgConfig::PANGOCAIRO
but the target was not found.
Le jeudi 18 avril 2024 à 22:15:53 UTC+2, ggar...@gmail.com a écrit :
On 18/4/24 14:40, Manolo wrote:
> With FLTK commit e6957fc you should be able to use the system version
> of libdecor
> both in FLTK and GLFW. This should fix the incompatibility you report.
>
It did not work. I think you misunderstood. I am on Ubuntu 22.04.4 LTS
which does not have a libdecor >= 0.2.0.
OK. I had tried with Ubuntu 23.10 and its libdecor version 0.2.0.
FLTK is also compatible with libdecor 0.1.x. But this version does not contain the GTK libdecor plugin,
so I'm reluctent to make FLTK work with this early, outdated, system version of libdecor.
Would you have the possibility to install from source the last version of libdecor thatwould land in /usr/local and bring with it the GTK plugin?
I compiled the latest libdecor and recompiled the latest branch
of FLTK that Albrecht mentioned on this thread.
No warnings issued. Not sure what's the the GTK plugin.
Note that the path to libdecor was not printed out (sorry to be a pain, Albrecht), but it said it was using the system one, so I expect it to be okay.
I have /usr/local/lib in my LD_LIBRARY_PATH. Instead of a crash, my program started.
Note that glfw3 creates its wayland support on the fly with
wayland-scanner (not sure how that works, thou), so maybe it is
still picking the one in /usr/lib/x86_64-linux-gnu.
This would decorate all FLTK windows with a black titlebar, making FLTK windowsseem aliens on the desktop.
My program run, but I got something similar to that.
[app] Running on: Ubuntu 22.04.4 LTS
[app] Desktop: ubuntu-wayland
FLTK's OpenGL window was messed up. It would display white (and would slowly fade to it and display ghosting). It would also not respect the matrix transformation it seemed, as I tried to pan around the main GL window. The bottom window (the thumbnail timeline), which is created with GLFW would work okay, thou.
I am attaching a .png which I hope will go through. Anyway, this was a test to see where I stand. I will try again once the next Ubuntu LTS is released, but if you have ideas on how to fix it now, I am all ears.
-- Gonzalo Garramuño ggar...@gmail.com
I compiled the latest libdecor and recompiled the latest branch of FLTK that Albrecht mentioned on this thread.
No warnings issued. Not sure what's the the GTK plugin.
Note that the path to libdecor was not printed out (sorry to be a pain, Albrecht), but it said it was using the system one, so I expect it to be okay.
I have /usr/local/lib in my LD_LIBRARY_PATH. Instead of a crash, my program started.
Note that glfw3 creates its wayland support on the fly with wayland-scanner (not sure how that works, thou), so maybe it is still picking the one in /usr/lib/x86_64-linux-gnu.
This would decorate all FLTK windows with a black titlebar, making FLTK windowsseem aliens on the desktop.My program run, but I got something similar to that.
[app] Running on: Ubuntu 22.04.4 LTS
[app] Desktop: ubuntu-wayland
FLTK's OpenGL window was messed up. It would display white (and would slowly fade to it and display ghosting). It would also not respect the matrix transformation it seemed, as I tried to pan around the main GL window. The bottom window (the thumbnail timeline), which is created with GLFW would work okay, thou.
I am attaching a .png which I hope will go through. Anyway, this was a test to see where I stand. I will try again once the next Ubuntu LTS is released, but if you have ideas on how to fix it now, I am all ears.
This would decorate all FLTK windows with a black titlebar, making FLTK windowsseem aliens on the desktop.My program run, but I got something similar to that.
[app] Running on: Ubuntu 22.04.4 LTS
[app] Desktop: ubuntu-wayland
FLTK's OpenGL window was messed up. It would display white (and would slowly fade to it and display ghosting). It would also not respect the matrix transformation it seemed, as I tried to pan around the main GL window. The bottom window (the thumbnail timeline), which is created with GLFW would work okay, thou.
I see no way that libdecor can mess up OpenGL drawing. Are you mixing headers and shared libs of distinct builds?
I am attaching a .png which I hope will go through. Anyway, this was a test to see where I stand. I will try again once the next Ubuntu LTS is released, but if you have ideas on how to fix it now, I am all ears.
libdecor is useful to create window titlebars, mostly with CSD wayland compositors, but also with SSD compositors because it does the negotiation with the compositor to ask it to draw titlebars.Your png shows no titlebar. Is libdecor really working at all in your setup? How many top-level windows are there?
What wayland compositor do you use? If that's Ubuntu's default one, it's gnome's compositor called Mutter.
Sorry. I used the default Ubuntu Wayland setup. It showed a titlebar but the Ubuntu screen grabber did not save the title bar. I had not checked the image.
I was getting the equivalent of the cairo titlebar, with a *BIG*
font.
-- Gonzalo Garramuño ggar...@gmail.com
Sorry. I used the default Ubuntu Wayland setup. It showed a titlebar but the Ubuntu screen grabber did not save the title bar. I had not checked the image.
I was getting the equivalent of the cairo titlebar, with a *BIG* font.
On 20/4/24 08:43, Manolo wrote:
> Commit 7ec6f96 has FLTK use its bundled copy of libdecor with symbols
> prefixed by "fl_". With this, you should be able to mix FLTK and GLFW
> without
> problem caused by libdecor.
I appreciate your effort, but I would probably suggest you revert that
change, or else you'll have to keep maintaining it on every new libdecor
release.
FLTK and GLFW are working fine together.
FLTK and GLFW are working fine together.
They should work together even better with the change.
You are absolutely right! It removed the Plugin "GTK-whatever" png_free conflict.
Now, if you could take a look at FLTK issue #957, to see if it is an FLTK OpenGL Wayland bug or actual "feature" of Wayland, we would be able to close this issue for good.
-- Gonzalo Garramuño ggar...@gmail.com
On 20/4/24 14:40, Manolo wrote:
FLTK and GLFW are working fine together.
They should work together even better with the change.
You are absolutely right! It removed the Plugin "GTK-whatever" png_free conflict.
Now, if you could take a look at FLTK issue #957, to see if it is an FLTK OpenGL Wayland bug or actual "feature" of Wayland, we would be able to close this issue for good.
You are absolutely right! It removed the Plugin "GTK-whatever" png_free conflict.
Could you, please, tell me what type of titlebar you get for your FLTK windowsand your GLWF window with the last version of FLTK?
Now, if you could take a look at FLTK issue #957, to see if it is an FLTK OpenGL Wayland bug or actual "feature" of Wayland, we would be able to close this issue for good.
I don't know OpenGL so can't act on this issue.
-- Gonzalo Garramuño ggar...@gmail.com