perf ui: Show the scroll bar over the left window frame
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 26 Jul 2010 17:08:48 +0000 (14:08 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jul 2010 14:24:31 +0000 (11:24 -0300)
So that we gain two columns and look more like classical (at least in
TUIs) scroll bars bars.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/newt.c

index aed21490ccdc046f93720a0a1be323090beab187..cdd958eb68cf6ea16e31f148838f7a90c1c2642d 100644 (file)
@@ -347,12 +347,12 @@ static int ui_browser__show(struct ui_browser *self, const char *title)
                newtPopWindow();
        }
        ui_browser__refresh_dimensions(self);
-       newtCenteredWindow(self->width + 2, self->height, title);
+       newtCenteredWindow(self->width, self->height, title);
        self->form = newt_form__new();
        if (self->form == NULL)
                return -1;
 
-       self->sb = newtVerticalScrollbar(self->width + 1, 0, self->height,
+       self->sb = newtVerticalScrollbar(self->width, 0, self->height,
                                         HE_COLORSET_NORMAL,
                                         HE_COLORSET_SELECTED);
        if (self->sb == NULL)