From 077ffb5b43104b44d6a146c3435ca979e32f3b1d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 16 Dec 2007 18:23:37 +0100 Subject: [PATCH] update titleinfo with the right window --- widgets/focustitle.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/widgets/focustitle.c b/widgets/focustitle.c index 6be53c05e..f6241c00a 100644 --- a/widgets/focustitle.c +++ b/widgets/focustitle.c @@ -1,15 +1,18 @@ #include #include "util.h" #include "widget.h" - +#include "layout.h" +#include "focus.h" extern awesome_config globalconf; static int focustitle_draw(Widget *widget, DrawCtx *ctx, int offset, int used) { - Client *sel = globalconf.focus->client; VirtScreen vscreen = globalconf.screens[widget->statusbar->screen]; + Client *sel = focus_get_latest_client_for_tag(globalconf.focus, + widget->statusbar->screen, + get_current_tag(widget->statusbar->screen)); int location = calculate_offset(vscreen.statusbar.width, 0, offset,