case 'a':
text_alignment = string_to_alignment(optarg);
break;
- case 'X':
- if (disp)
- free(disp);
- disp = strdup(optarg);
- break;
#ifdef OWN_WINDOW
case 'o':
case 'w':
window.window = strtol(optarg, 0, 0);
break;
+ case 'X':
+ if (disp)
+ free(disp);
+ disp = strdup(optarg);
+ break;
#endif /* X11 */
case '?':
{
if (!display) {
if ((display = XOpenDisplay(disp)) == NULL) {
- CRIT_ERR(NULL, NULL, "can't open display: %s", XDisplayName(0));
+ CRIT_ERR(NULL, NULL, "can't open display: %s", XDisplayName(disp));
}
}