summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-11-29 22:04:02 +0000
committerpeter1138 <peter1138@openttd.org>2005-11-29 22:04:02 +0000
commit4191adb92cbd9a1cb02b7a913fa90d62ee32ec31 (patch)
tree5b135f63523ef973a5161d964c97381e8da0b545 /window.c
parent44c70c24d3e205592d8052d0a876f8cdf5912ce1 (diff)
downloadopenttd-4191adb92cbd9a1cb02b7a913fa90d62ee32ec31.tar.xz
(svn r3247) - Fix: "[ 1335580 ] sticky windows not sticky anymore"
Determine clicked status of sticky icon from window flags rather than the widget click state. This keeps the status in one place where it can't get out of sync.
Diffstat (limited to 'window.c')
-rw-r--r--window.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/window.c b/window.c
index be2f8d408..3398081a8 100644
--- a/window.c
+++ b/window.c
@@ -74,7 +74,6 @@ static void DispatchLeftClickEvent(Window* w, int x, int y)
}
if (w->desc_flags & WDF_STICKY_BUTTON && wi->type == WWT_STICKYBOX) {
- TOGGLEBIT(w->click_state, e.click.widget);
w->flags4 ^= WF_STICKY;
InvalidateWidget(w, e.click.widget);
return;