Cocoa: Use window* accessors
XCB: Use window* accessors