mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r1602) -Fix: [1107514] When resizing a window, make sure the correct window receives the click
This commit is contained in:
parent
7f15ae3301
commit
6140e55f38
2
window.c
2
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);
|
||||
|
Loading…
Reference in New Issue
Block a user