mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 12:27:52 +00:00
Bug fix: make -X,--display actually work, improve error message if display not found
This commit is contained in:
parent
7ff2a71aa0
commit
01e66c7f8c
10
src/conky.c
10
src/conky.c
@ -9257,11 +9257,6 @@ void initialisation(int argc, char **argv) {
|
||||
case 'a':
|
||||
text_alignment = string_to_alignment(optarg);
|
||||
break;
|
||||
case 'X':
|
||||
if (disp)
|
||||
free(disp);
|
||||
disp = strdup(optarg);
|
||||
break;
|
||||
|
||||
#ifdef OWN_WINDOW
|
||||
case 'o':
|
||||
@ -9459,6 +9454,11 @@ int main(int argc, char **argv)
|
||||
case 'w':
|
||||
window.window = strtol(optarg, 0, 0);
|
||||
break;
|
||||
case 'X':
|
||||
if (disp)
|
||||
free(disp);
|
||||
disp = strdup(optarg);
|
||||
break;
|
||||
#endif /* X11 */
|
||||
|
||||
case '?':
|
||||
|
Loading…
Reference in New Issue
Block a user