From 9adfc6eb35b5f8669dd768a5a0638742a9f02dc3 Mon Sep 17 00:00:00 2001 From: Nikos Ntarmos Date: Mon, 31 Dec 2007 18:45:31 +0200 Subject: [PATCH] Typo in screen.c:get_display_area causing display area to be miscalculated --- screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screen.c b/screen.c index 50b04657..55cf1ddd 100644 --- a/screen.c +++ b/screen.c @@ -108,8 +108,8 @@ get_display_area(int screen, Statusbar *statusbar, Padding *padding) for(sb = statusbar; sb; sb = sb->next) { - area.y -= sb->position == BarTop ? statusbar->height : 0; - area.height -= (statusbar->position == BarTop || statusbar->position == BarBot) ? statusbar->height : 0; + area.y += sb->position == BarTop ? sb->height : 0; + area.height -= (sb->position == BarTop || sb->position == BarBot) ? sb->height : 0; } /* make padding corrections */