diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2010-05-23 18:51:58 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2010-05-23 18:51:58 +0200 |
commit | c739c6a43ccc63c74b15340c54f9da76960b2fa6 (patch) | |
tree | 1e81a19ff10f891ce1d4c15845dc910d6eefb83a /apps/x11_main.c | |
parent | 757bb854372170a4b45200f448e51638e1c378e1 (diff) | |
download | mupdf-c739c6a43ccc63c74b15340c54f9da76960b2fa6.tar.xz |
Check X11 error code when creating window.
Diffstat (limited to 'apps/x11_main.c')
-rw-r--r-- | apps/x11_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/x11_main.c b/apps/x11_main.c index a9fe22f8..f09eea8f 100644 --- a/apps/x11_main.c +++ b/apps/x11_main.c @@ -138,6 +138,8 @@ static void winopen(void) ximage_get_visual(), 0, nil); + if (xwin == None) + winerror(&gapp, fz_throw("cannot create window")); XSetWindowColormap(xdpy, xwin, ximage_get_colormap()); XSelectInput(xdpy, xwin, |