aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Duquesnoy <xorg62@gmail.com>2013-08-14 13:17:34 +0200
committerMartin Duquesnoy <xorg62@gmail.com>2013-08-14 13:17:34 +0200
commit3c701a9b349980034ffdbbc3e46664c5e24b37e4 (patch)
treec45c110bcaa45add75974ddfc75ef7b3a5ed4d82
parent72d745efafc723e7be2a96e8e6ae0a134acdf130 (diff)
downloadwmfs-master.zip
wmfs-master.tar.gz
wmfs-master.tar.bz2
Fix Issue #77, tabbed client titlebar redrawingHEADmaster
-rw-r--r--src/client.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/client.c b/src/client.c
index 7b9790e..a815f8f 100644
--- a/src/client.c
+++ b/src/client.c
@@ -409,9 +409,6 @@ client_frame_update(struct client *c, struct colpair *cp)
struct status_ctx *sctx;
int y, f, xt, rm, w, n = 1;
- if(c->flags & CLIENT_TABBED)
- c = c->tabmaster;
-
XSetWindowBackground(W->dpy, c->frame, cp->bg);
XClearWindow(W->dpy, c->frame);
@@ -435,11 +432,18 @@ client_frame_update(struct client *c, struct colpair *cp)
if(n == 1)
{
w = draw_textw(c->theme, c->title);
+
+ if(!(c->flags & CLIENT_TABBED))
+ {
+ barwin_reparent(c->titlebar, c->frame);
+ barwin_move(c->titlebar, 0, 0);
+ barwin_resize(c->titlebar, f, c->tbarw);
+ }
+ else
+ f = c->titlebar->geo.w + (c->border * 1.5);
+
_XTEXT();
- barwin_reparent(c->titlebar, c->frame);
- barwin_move(c->titlebar, 0, 0);
- barwin_resize(c->titlebar, f, c->tbarw);
barwin_refresh_color(c->titlebar);
_STATUSLINE(c, (cp == &c->scol));