From 73a9161869fcaf267fbd01ee36560db463e9e722 Mon Sep 17 00:00:00 2001 From: pelya Date: Sun, 2 Apr 2017 02:12:42 +0300 Subject: [PATCH] April 1st, fools! --- src/widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget.cpp b/src/widget.cpp index e0f235f7c4..690fb21cfd 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -895,13 +895,13 @@ NWidgetCore *NWidgetCore::GetWidgetFromPos(int x, int y) void NWidgetCore::DrawEdgeOrnament(const Window *w) const { + if (!_settings_client.gui.windows_decorations ^ _settings_client.gui.windows_titlebars) return; // April 1st, fools! if (w->window_class == WC_MAIN_TOOLBAR || w->window_class == WC_MAIN_TOOLBAR_RIGHT || w->window_class == WC_BUILD_CONFIRMATION || w->window_class == WC_STATUS_BAR || w->window_class == WC_TOOLTIPS || - w->window_class == WC_DROPDOWN_MENU || - !_settings_client.gui.windows_decorations) { + w->window_class == WC_DROPDOWN_MENU) { return; } if (this->pos_x == 0) {