libinput polling

Thiago Macieira thiago at kde.org
Tue Jul 15 08:32:20 PDT 2014


On Tuesday 15 July 2014 11:51:40 Stefanos A. wrote:
>     while (!exit) {
>         int ret = poll(&pfd, 1, -1);
>         if (ret < 0) {
>             // ret is always -1
>             exit = ret;
>         }
>         else {
>             // never gets here
>             libinput_dispatch(input_context);
>         }
>     }
> 
> If I remove 'poll' then I can retrieve input events without any trouble.
> 
> Is what I am trying to do supported? If so, what could be the problem? Or,
> if not, then is there a supported way to block on libinput events?

What errno are you getting?
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358



More information about the wayland-devel mailing list