|
|
Le vendredi 19 avril 2024 à 22:50:25 UTC+2, ggar...@gmail.com a écrit :
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.
You should be able to see what version of libdecor.so is used by your exe with command ldd.
This would decorate all FLTK windows with a black titlebar,
making FLTK windows
seem 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. Or do you use the KDE desktop? In that case, titlebars are drawn by the compositor, not by libdecor because it's a SSD compositor.
This is what the GTK plugin produces:
This is what the cairo plugin, the only one available before version 0.2 of libdecor, produces:
--
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/30325ae9-dbf6-4a87-91d8-c85f1c3e3212n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |