[x11] Use XNextEvent() again instead of usleep() based polling after fixes.
[x11] Use XNextEvent() again instead of usleep() based polling after fixes.

Pull up to 100 events per round, i.e. until accumulated motion events
are flushed and thread exit status is checked.

Send ClientMessage to wake up thread from blocking XNextEvent().

NOTE: Assuming XNextEvent() is thread safe by itself and does not require
to use XLock/UnlockDisplay(), because using it blocks all other threads
while XNextEvent() is blocking...

DirectFB/directfb,kaostao/directfb,djbclark/directfb-core-DirectFB,sklnet/DirectFB,djbclark/directfb-core-DirectFB,deniskropp/DirectFB,sklnet/DirectFB,DirectFB/directfb,kaostao/directfb,mtsekm/test,kaostao/directfb,sklnet/DirectFB,lancebaiyouview/DirectFB,deniskropp/DirectFB,jcdubois/DirectFB,kevleyski/DirectFB-1,lancebaiyouview/DirectFB,kevleyski/directfb,jcdubois/DirectFB,deniskropp/DirectFB,dfbdok/DirectFB1,kevleyski/DirectFB-1,lancebaiyouview/DirectFB,mtsekm/test,Distrotech/DirectFB,kevleyski/directfb,sklnet/DirectFB,kevleyski/DirectFB-1,kevleyski/DirectFB-1,kevleyski/directfb,deniskropp/DirectFB,dfbdok/DirectFB1,DirectFB/directfb,Distrotech/DirectFB,djbclark/directfb-core-DirectFB,jcdubois/DirectFB,lancebaiyouview/DirectFB,kevleyski/directfb,Distrotech/DirectFB,dfbdok/DirectFB1,djbclark/directfb-core-DirectFB,mtsekm/test