kbdd icon indicating copy to clipboard operation
kbdd copied to clipboard

Process eat 100% of current resources after "Process XKB events in loop" commit

Open mahatma-kaganovich opened this issue 8 years ago • 2 comments

After commit 0b92da3dd9b39953c5d275c264f2041da59acfc7 ("Process XKB events in loop") on xorg-server 1.19.0 (at least, others don't try) kbdd always on top and eat 100% CPU. Rolling back this single patch solve problem.

mahatma-kaganovich avatar Dec 05 '16 13:12 mahatma-kaganovich

Fixed for me by changing "while(){}" to "do{}while()" in this place. https://raw.githubusercontent.com/mahatma-kaganovich/raw/6c870f1a5cb2a29fcd522a9b1b41102ce0f77160/app-portage/ppatch/files/extensions/x11-misc/kbdd/prepare/dowhile.patch

PS Now all fine, but googling also subject to future deep test: change XPending(display) to XEventsQueued(display, QueuedAlready) - blocking vs. non-blocking.

mahatma-kaganovich avatar Dec 10 '16 12:12 mahatma-kaganovich

Thanks, I'll try to check that asap.

qnikst avatar Jan 29 '17 18:01 qnikst