aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xlib.c b/src/xlib.c
index fc6895d..2912321 100644
--- a/src/xlib.c
+++ b/src/xlib.c
@@ -173,8 +173,8 @@ static int xquit(Display *d){
void backend_init(){
display = XOpenDisplay (NULL);
- xfd = ConnectionNumber(display);
assert(display);
+ xfd = ConnectionNumber(display);
screen = DefaultScreen(display);
window = XCreateWindow(display, DefaultRootWindow(display), 0, 0, 640, 480, 0, DefaultDepth(display, screen), InputOutput, CopyFromParent, 0, NULL);