X.org endless vacation of code

2023-11-05 Thread Forcha Pearl
Hello , I am Forcha Pearl Fri , a final year student of University of Buea
, Cameroon. I wish to contribute to the OpenMAX projects  , please how may
I get started.


Re: using libinput with glib's signal_timeout

2023-11-05 Thread Peter Hutterer
On Fri, Nov 03, 2023 at 11:12:27AM +0100, kyomawolf wrote:
> Hey Guys,
> currently I'm trying to use a libinput's eventloop. It used to work as a 
> standalone, but when I tried to put it into Glib::signal_timeout it seems to 
> not receive any events anymore. Do you know more about why this is happening?
> I put a simple example of what I mean in the attachment.
> Greetings Kyomawolf
>  

rough guess: you're not calling libinput_dispatch() when there's data on
the libinput_get_fd(). libinput doesn't work in a thread, it only does
things when you call libinput_dispatch() and that again may (or may not)
result in events being available.

IOW, unless you call libinput_dispatch(), nothing happens.

also - if in doubt enable debug logging so you can see what libinput
does during dispatch, that might provide some info too.

Cheers,
  Peter