Where the x, y, width, and height arguments are used together, the x and y arguments always precede the width and height arguments. Where a mask is accompanied with a structure, the mask always precedes the pointer to the structure in the argument list. This decision was made to minimize the bandwidth required for a given level of performance. Coordinates usually are declared as an int in the interface. Values larger than 16 bits are truncated silently.
Keyboards are the greatest variable between different manufacturers' workstations.
If you want your program to be portable, you should be particularly conservative here. Many display systems have limited amounts of off-screen memory. If you can, you should minimize use of pixmaps and backing store. Therefore, you should write your applications to react to window management rather than presume control of the entire screen. What you do inside of your top-level window, however, is up to your application.