* Cherry-picked fixes from upstream: - man: fix types for XGetSelectedExtensionEvents - Initialize extension with the right number of events (obsoletes our quilt patch) - Don't unlock the Display twice - Fix usage of uninitialized value - Fix memory leak in XIGetSelectedEvents - Always unlock display correctly - man: improve readability of XAllowDeviceEvents - man: fix typo in XIQueryDevice doc (closes: #598964) - Fix typo when converting raw events from the wire - man: XGetDeviceProperty(3) has no parameter 'pending'