mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r1602) -Fix: [1107514] When resizing a window, make sure the correct window receives the click
This commit is contained in:
parent
f83828d944
commit
7243369333
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