summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-18 17:21:59 +0100
committerBert <ber.t@gmx.com>2011-01-18 17:21:59 +0100
commitbb4edc756c7ceddb0f13194929cd1d363c85d653 (patch)
treec7da66814615c2b080df7499b77bcf4debd1bb0b /window.c
parent2a2f0307c1e313dde979de2086d93971c57d342b (diff)
downloadnsxiv-bb4edc756c7ceddb0f13194929cd1d363c85d653.tar.zst
Renamed FATAL to DIE
Diffstat (limited to 'window.c')
-rw-r--r--window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/window.c b/window.c
index 34c81aa..f8afad6 100644
--- a/window.c
+++ b/window.c
@@ -37,7 +37,7 @@ void win_open(win_t *win) {
e = &win->env;
if (!(e->dpy = XOpenDisplay(NULL)))
- FATAL("could not open display");
+ DIE("could not open display");
e->scr = DefaultScreen(e->dpy);
e->scrw = DisplayWidth(e->dpy, e->scr);
@@ -49,7 +49,7 @@ void win_open(win_t *win) {
if (!XAllocNamedColor(e->dpy, DefaultColormap(e->dpy, e->scr), BG_COLOR,
&bgcol, &bgcol))
- FATAL("could not allocate color: %s", BG_COLOR);
+ DIE("could not allocate color: %s", BG_COLOR);
if (win->w > e->scrw)
win->w = e->scrw;
@@ -67,7 +67,7 @@ void win_open(win_t *win) {
win->x, win->y, win->w, win->h, 0,
e->depth, InputOutput, e->vis, mask, &attr);
if (win->xwin == None)
- FATAL("could not create window");
+ DIE("could not create window");
XSelectInput(e->dpy, win->xwin,
StructureNotifyMask | ExposureMask | KeyPressMask);