From 0fc793ecaae7d9e4ca08483833d059b892340ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=28=C2=B4=E3=83=BB=CF=89=E3=83=BB=EF=BD=80=29?= Date: Sat, 18 Sep 2021 19:26:45 +0900 Subject: [PATCH] FIX: The opened window prevents consecutive clicks on the same tile. (maybe from r9796) --- gui/simwin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/simwin.cc b/gui/simwin.cc index d1aad40397..e2f36351a1 100644 --- a/gui/simwin.cc +++ b/gui/simwin.cc @@ -839,7 +839,7 @@ int create_win(scr_coord_val x, scr_coord_val y, gui_frame_t* const gui, wintype if (x == -1) { move_to_full_view = true; x = get_mouse_x() - gui->get_windowsize().w / 2; - y = get_mouse_y() - gui->get_windowsize().h / 2; + y = get_mouse_y() - gui->get_windowsize().h - get_tile_raster_width()/4; } // make sure window is on screen