diff options
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, |