summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-06-12 13:10:14 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-06-12 13:10:14 +0100
commit709da0b85879f4ce3275993e4ffc1af2ca4dde93 (patch)
tree946894b4851b4ce9d8aa486fd8346f80064f3810
parentintegrated yiyus mouse.diff (though the bar click handling is slightly broken... (diff)
downloaddwm-709da0b85879f4ce3275993e4ffc1af2ca4dde93.tar.gz
dwm-709da0b85879f4ce3275993e4ffc1af2ca4dde93.zip
some bugfixes of the patch application yesterday
Diffstat (limited to '')
-rw-r--r--dwm.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/dwm.c b/dwm.c
index 4153f41..d531965 100644
--- a/dwm.c
+++ b/dwm.c
@@ -315,23 +315,23 @@ buttonpress(XEvent *e) {
315 click = ClkRootWin; 315 click = ClkRootWin;
316 if(ev->window == barwin) { 316 if(ev->window == barwin) {
317 x = 0; 317 x = 0;
318 for(i = 0; i < LENGTH(tags) && ev->x >= x; i++) { 318 for(i = 0; i < LENGTH(tags) && ev->x >= x; i++)
319 x += TEXTW(tags[i]); 319 x += TEXTW(tags[i]);
320 if(i < LENGTH(tags) || ev->x <= x) 320 if(i < LENGTH(tags) || ev->x <= x)
321 click = i - 1; 321 click = i - 1;
322 else if(ev->x < x + blw) 322 else if(ev->x < x + blw)
323 click = ClkLtSymbol; 323 click = ClkLtSymbol;
324 else if(ev->x > wx + ww - TEXTW(stext)) 324 else if(ev->x > wx + ww - TEXTW(stext))
325 click = ClkStatusText; 325 click = ClkStatusText;
326 else 326 else
327 click = ClkWinTitle; 327 click = ClkWinTitle;
328 }
329 } 328 }
330 else if((c = getclient(ev->window))) 329 else if((c = getclient(ev->window)))
331 click = ClkClientWin; 330 click = ClkClientWin;
332 331
333 for(i = 0; i < LENGTH(buttons); i++) 332 for(i = 0; i < LENGTH(buttons); i++)
334 if(click == buttons[i].click && buttons[i].func && buttons[i].button == ev->button && CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state)) 333 if(click == buttons[i].click && buttons[i].func && buttons[i].button == ev->button
334 && CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state))
335 buttons[i].func(&buttons[i].arg); 335 buttons[i].func(&buttons[i].arg);
336} 336}
337 337
@@ -1646,7 +1646,7 @@ updatewmhints(Client *c) {
1646void 1646void
1647view(const Arg *arg) { 1647view(const Arg *arg) {
1648 seltags ^= 1; /* toggle sel tagset */ 1648 seltags ^= 1; /* toggle sel tagset */
1649 if(arg && (arg->ui & TAGMASK) && (arg->ui & TAGMASK) != tagset[seltags ^ 1]) 1649 if(arg && (arg->ui & TAGMASK))
1650 tagset[seltags] = arg->i & TAGMASK; 1650 tagset[seltags] = arg->i & TAGMASK;
1651 arrange(); 1651 arrange();
1652} 1652}