equal
deleted
inserted
replaced
1043 c->x = sx + sw - WIDTH(c); |
1043 c->x = sx + sw - WIDTH(c); |
1044 if(c->y + HEIGHT(c) > sy + sh) |
1044 if(c->y + HEIGHT(c) > sy + sh) |
1045 c->y = sy + sh - HEIGHT(c); |
1045 c->y = sy + sh - HEIGHT(c); |
1046 c->x = MAX(c->x, sx); |
1046 c->x = MAX(c->x, sx); |
1047 /* only fix client y-offset, if the client center might cover the bar */ |
1047 /* only fix client y-offset, if the client center might cover the bar */ |
1048 c->y = MAX(c->y, ((selmon->by == 0) && (c->x + (c->w / 2) >= selmon->wx) |
1048 c->y = MAX(c->y, ((c->mon->by == 0) && (c->x + (c->w / 2) >= c->mon->wx) |
1049 && (c->x + (c->w / 2) < selmon->wx + selmon->ww)) ? bh : sy); |
1049 && (c->x + (c->w / 2) < c->mon->wx + c->mon->ww)) ? bh : sy); |
1050 c->bw = borderpx; |
1050 c->bw = borderpx; |
1051 } |
1051 } |
1052 |
1052 |
1053 wc.border_width = c->bw; |
1053 wc.border_width = c->bw; |
1054 XConfigureWindow(dpy, w, CWBorderWidth, &wc); |
1054 XConfigureWindow(dpy, w, CWBorderWidth, &wc); |
1269 Client *c; |
1269 Client *c; |
1270 XEvent ev; |
1270 XEvent ev; |
1271 XWindowChanges wc; |
1271 XWindowChanges wc; |
1272 |
1272 |
1273 drawbars(); |
1273 drawbars(); |
1274 if(!selmon->sel) |
1274 if(!m->sel) |
1275 return; |
1275 return; |
1276 if(m == selmon && (selmon->sel->isfloating || !lt[m->sellt]->arrange)) |
1276 if(m->sel->isfloating || !lt[m->sellt]->arrange) |
1277 XRaiseWindow(dpy, selmon->sel->win); |
1277 XRaiseWindow(dpy, m->sel->win); |
1278 if(lt[m->sellt]->arrange) { |
1278 if(lt[m->sellt]->arrange) { |
1279 wc.stack_mode = Below; |
1279 wc.stack_mode = Below; |
1280 wc.sibling = m->barwin; |
1280 wc.sibling = m->barwin; |
1281 for(c = m->stack; c; c = c->snext) |
1281 for(c = m->stack; c; c = c->snext) |
1282 if(!c->isfloating && ISVISIBLE(c)) { |
1282 if(!c->isfloating && ISVISIBLE(c)) { |