summaryrefslogtreecommitdiff
path: root/window.c
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
commit7243369333475b819a2d4a8021a466660e702d5e (patch)
tree8f9380b07a76ad78ee8e18b16e23e6066748ae7f /window.c
parentf83828d944bee314d829406b41b208bce46cdb78 (diff)
downloadopenttd-7243369333475b819a2d4a8021a466660e702d5e.tar.xz
(svn r1602) -Fix: [1107514] When resizing a window, make sure the correct window receives the click
Diffstat (limited to 'window.c')
-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);