Xlib/XCB backend: fix possible infinite loop in findParameter
Swap current and default values with useDefaults
Xlib backend: read caps in constructor