[Gambas-user] MediaView now works on Wayland!

Benoît Minisini benoit.minisini at gambas-basic.org
Fri Jan 12 22:16:08 CET 2024


Le 12/01/2024 à 14:24, Christof Thalhofer a écrit :
> Am 12.01.24 um 02:05 schrieb Benoît Minisini:
> 
>> After having used tons of elbow grease, I finally succeeded in playing
>> videos on Wayland with GStreamer, using GTK+3 or QT5 toolkit.
> 
> :-)
> 
> Congratulations!
> 
>> I think I can happily rest now, and start thinking about releasing
>> Gambas 3.19.
> 
> All tests run well but I see strange behavior in my main app. I will 
> have to investigate.
> 
> Alles Gute
> 
> Christof Thalhofer
> 

Correction: MediaView now really works on Wayland!

At least under KDE / Kubuntu or Gnome / Fedora...

What was the problem? On Wayland, you can't get the absolute coordinates 
of a window (a "surface" in Wayland language). It's always (0,0).

I need that to position the surface that displays the video on top of 
the window (a "sub-surface" in Wayland language).

But...

Because of the marvelous invention of client-side decoration, the window 
contents is shifted, so that there is enough space for window 
decorations and shadows.

And, of course, you don't get that information the same way with GTK+ or 
Qt, and if you use different Wayland window managers!

At least now I successfully modified ScreenX and ScreenY properties so 
that it works on KDE / Kubuntu and Gnome / Fedora.

Please tell me if the MediaView displays videos correctly on your 
Wayland configuration.

Regards,

-- 
Benoît Minisini.



More information about the User mailing list