x11vnc: fix double X_UNLOCK on xrandr events

check_xrandr_event() assumes X_LOCK is taken before it is called, and
currently calls X_UNLOCK on behalf of the caller. But in practice, all
callers assume that the lock is still held after check_xrandr_event()
returns. In particular, this leads to a double-unlock and crash in
check_xevents() on any xrandr event.
Fix crash in krfb

Krfb crashes on quit, if any client is connected
due to a rfbClientConnectionGone call missing
allow rfbInitSockets with non-ready states.

This allows for reinitializations of e. g. sockets in a SHUTDOWN state.
The only state that doesn't make sense to reinitialize are READY states.
Merge pull request #20 from newsoft/master

Fix integer overflow in MallocFrameBuffer()
Fix indentation

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Use Libs.private to avoid unnecessary linkage
Enable support for ppc64el architecture
Fix whitespace

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge pull request #17 from dktrkranz/master

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge pull request #16 from sandsmark/master

Merge patches from KDE/krfb