diff --git a/src/window.cpp b/src/window.cpp index 61ef20befd..fd6ce09009 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -446,7 +446,7 @@ static void DispatchMouseWheelEvent(Window *w, const NWidgetCore *nwid, int whee /* Using wheel on caption/shade-box shades or unshades the window. */ if (nwid->type == WWT_CAPTION || nwid->type == WWT_SHADEBOX) { - w->SetShaded(!w->IsShaded()); + w->SetShaded(wheel < 0); return; }