update titleinfo with the right window
This commit is contained in:
parent
48ac631f41
commit
077ffb5b43
|
@ -1,15 +1,18 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "widget.h"
|
#include "widget.h"
|
||||||
|
#include "layout.h"
|
||||||
|
#include "focus.h"
|
||||||
|
|
||||||
extern awesome_config globalconf;
|
extern awesome_config globalconf;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
focustitle_draw(Widget *widget, DrawCtx *ctx, int offset, int used)
|
focustitle_draw(Widget *widget, DrawCtx *ctx, int offset, int used)
|
||||||
{
|
{
|
||||||
Client *sel = globalconf.focus->client;
|
|
||||||
VirtScreen vscreen = globalconf.screens[widget->statusbar->screen];
|
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,
|
int location = calculate_offset(vscreen.statusbar.width,
|
||||||
0,
|
0,
|
||||||
offset,
|
offset,
|
||||||
|
|
Loading…
Reference in New Issue