Unless you are in a very very special class of application (e.g. Compositors, Window Managers, and GUI toolkits) you are not and should not be targeting the display server, you are going to be targeting a toolkit or framework such as Qt, GTK, EFL, SDL, etc.