diff --git a/src/conio/x_events.c b/src/conio/x_events.c
index 7b4a3a81eb748de080ef168de7db0b20c8c5ae49..a9b380c928ffd13eb9389b318daa1ee4ba8cc07a 100644
--- a/src/conio/x_events.c
+++ b/src/conio/x_events.c
@@ -663,7 +663,7 @@ static void resize_window()
 	x_cvstat.winheight = height;
 	x_cvstat.scaling = bitmap_double_mult_inside(width, height);
 	pthread_mutex_unlock(&vstatlock);
-	x11.XResizeWindow(dpy, win, width, height));
+	x11.XResizeWindow(dpy, win, width, height);
 	resize_xim();
 
 	return;