mirror of
https://github.com/zoriya/dwm.git
synced 2026-06-06 20:02:44 +00:00
Finishing basic status bar handling
This commit is contained in:
+1
-13
@@ -4,24 +4,12 @@ width_status2d(Bar *bar, BarWidthArg *a)
|
||||
return status2dtextlength(rawstext) + lrpad;
|
||||
}
|
||||
|
||||
int
|
||||
width_status2d_es(Bar *bar, BarWidthArg *a)
|
||||
{
|
||||
return status2dtextlength(rawestext);
|
||||
}
|
||||
|
||||
int
|
||||
draw_status2d(Bar *bar, BarDrawArg *a)
|
||||
{
|
||||
return drawstatusbar(a->x, rawstext);
|
||||
}
|
||||
|
||||
int
|
||||
draw_status2d_es(Bar *bar, BarDrawArg *a)
|
||||
{
|
||||
return drawstatusbar(a->x, rawestext);
|
||||
}
|
||||
|
||||
int
|
||||
drawstatusbar(int x, char* stext)
|
||||
{
|
||||
@@ -168,4 +156,4 @@ status2dtextlength(char* stext)
|
||||
w += TEXTW(text) - lrpad;
|
||||
free(p);
|
||||
return w;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user