mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
xorg fix error reporting.
This commit is contained in:
parent
b13b1907f4
commit
4320a2b299
@ -39,8 +39,8 @@ KeyCode XKeysPop(KeySym keysym) {
|
|||||||
previous = node;
|
previous = node;
|
||||||
node = node->next;
|
node = node->next;
|
||||||
if (i++ > 120) {
|
if (i++ > 120) {
|
||||||
// this should lead to a panic
|
// this should NEVER HAPPEN
|
||||||
printf("loop over limit");
|
fprintf(stderr, "[FATAL-ERROR] XKeysPop() in xorg.c: reached maximum loop limit! Something is wrong\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -65,7 +65,7 @@ Display *getXDisplay(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (DISPLAY == NULL) {
|
if (DISPLAY == NULL) {
|
||||||
fputs("Could not open main display\n", stderr);
|
fprintf(stderr, "[FATAL-ERROR] XKeysPop() in xorg.c: Could not open main display!");
|
||||||
} else if (!REGISTERED) {
|
} else if (!REGISTERED) {
|
||||||
atexit(&XDisplayClose);
|
atexit(&XDisplayClose);
|
||||||
REGISTERED = 1;
|
REGISTERED = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user