[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wayland again



On Sunday, November 8th, 2026 at 08:56, valaquarus <valaquarus@xxxxxxxxx> wrote:
Howdy everyone,
I just tested several of my programs in wayland, just to see.
Several do not even start with an error I dont understand :


It just stop in the first steps, here :

Public Sub _new()

$hDrawingArea = New DrawingArea(Me) As "player" '<--------------------' this declaration seems to not fit wayland
$hDrawingArea.Cached = True '<----------------------------------------------------' for that, this is false
If XInitThreads() == 0 Then Error.Raise(("Quelque chose ne va pas!"))
$inst = libvlc_new(0, Null)
$id = $hDrawingArea.Id '<-----------------------------------------------------------' for that, this is false

Hi Valaquarus,

XInitThreads is a call to libX11
I use it in my VLC interface like this:
-------------------
Library "libX11:6"

'' In order to init x11 for threaded hardware decoding - seems only be usable with qt and causes a crash with gtk
Extern XInitThreads() As Integer

Public Sub _new()
 
  Dim iReturn As Integer
 
  'Only use this X11 init with qt because the program would crash with gtk
  If Component.IsLoaded("gb.gui.qt") Or Component.IsLoaded("gb.qt5") Then
    iReturn = XInitThreads()
    If iReturn = 0 Then Raise Error("XInitThreads error.")
    Debug "XInitThreads initialized"
  End If
  ....

End
------------------
I guess the fact that it is needs x11 is your main problem here.

gbWilly

Follow-Ups:
Re: Wayland againvalaquarus <valaquarus@xxxxxxxxx>
References:
Wayland againvalaquarus <valaquarus@xxxxxxxxx>