some bugfixes of the patch application yesterday
This commit is contained in:
parent
5cd65f8cd8
commit
709da0b858
1 changed files with 12 additions and 12 deletions
8
dwm.c
8
dwm.c
|
@ -315,7 +315,7 @@ buttonpress(XEvent *e) {
|
||||||
click = ClkRootWin;
|
click = ClkRootWin;
|
||||||
if(ev->window == barwin) {
|
if(ev->window == barwin) {
|
||||||
x = 0;
|
x = 0;
|
||||||
for(i = 0; i < LENGTH(tags) && ev->x >= x; i++) {
|
for(i = 0; i < LENGTH(tags) && ev->x >= x; i++)
|
||||||
x += TEXTW(tags[i]);
|
x += TEXTW(tags[i]);
|
||||||
if(i < LENGTH(tags) || ev->x <= x)
|
if(i < LENGTH(tags) || ev->x <= x)
|
||||||
click = i - 1;
|
click = i - 1;
|
||||||
|
@ -326,12 +326,12 @@ buttonpress(XEvent *e) {
|
||||||
else
|
else
|
||||||
click = ClkWinTitle;
|
click = ClkWinTitle;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else if((c = getclient(ev->window)))
|
else if((c = getclient(ev->window)))
|
||||||
click = ClkClientWin;
|
click = ClkClientWin;
|
||||||
|
|
||||||
for(i = 0; i < LENGTH(buttons); i++)
|
for(i = 0; i < LENGTH(buttons); i++)
|
||||||
if(click == buttons[i].click && buttons[i].func && buttons[i].button == ev->button && CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state))
|
if(click == buttons[i].click && buttons[i].func && buttons[i].button == ev->button
|
||||||
|
&& CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state))
|
||||||
buttons[i].func(&buttons[i].arg);
|
buttons[i].func(&buttons[i].arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1646,7 +1646,7 @@ updatewmhints(Client *c) {
|
||||||
void
|
void
|
||||||
view(const Arg *arg) {
|
view(const Arg *arg) {
|
||||||
seltags ^= 1; /* toggle sel tagset */
|
seltags ^= 1; /* toggle sel tagset */
|
||||||
if(arg && (arg->ui & TAGMASK) && (arg->ui & TAGMASK) != tagset[seltags ^ 1])
|
if(arg && (arg->ui & TAGMASK))
|
||||||
tagset[seltags] = arg->i & TAGMASK;
|
tagset[seltags] = arg->i & TAGMASK;
|
||||||
arrange();
|
arrange();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue