diff --git a/src/conio/x_events.c b/src/conio/x_events.c
index ad13b106ff9136d96fca6fd1dd718649dca4255f..8266622e6172853c47f52a8fed04ad3a623a7cc3 100644
--- a/src/conio/x_events.c
+++ b/src/conio/x_events.c
@@ -357,7 +357,6 @@ static int init_window()
 static void map_window()
 {
 	XSizeHints *sh;
-	int scaled_height;
 	int minwidth = bitmap_width;
 	int minheight = bitmap_height;