summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-23 08:34:39 +0000
committertron <tron@openttd.org>2005-01-23 08:34:39 +0000
commit6140e55f38b1c482f4169210f521c444f982d9b4 (patch)
tree8f9380b07a76ad78ee8e18b16e23e6066748ae7f
parent7f15ae3301aa46ffa2fd9929f366cd3e797d46c4 (diff)
downloadopenttd-6140e55f38b1c482f4169210f521c444f982d9b4.tar.xz
(svn r1602) -Fix: [1107514] When resizing a window, make sure the correct window receives the click
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index fc4459fae..61353b9ab 100644
--- a/window.c
+++ b/window.c
@@ -59,7 +59,7 @@ void DispatchLeftClickEvent(Window *w, int x, int y) {
}
if (w->desc_flags & WDF_RESIZABLE && wi->type == WWT_RESIZEBOX)
- StartWindowSizing(w);
+ w = StartWindowSizing(w);
if (w->desc_flags & WDF_STICKY_BUTTON && wi->type == WWT_STICKYBOX) {
TOGGLEBIT(w->click_state, e.click.widget);