fix 9patch detection; mouse support under XCB