void
buttonpress(XEvent *e) {
- unsigned int i, x, click;
+ unsigned int i, click;
Arg arg = {0};
Client *c;
Monitor *m;
for(i = nextvisible(c->mon->clients); i && i != c; i = nextvisible(i->next))
next_sel = i;
// failing that, find first visible window (besides c)
- if (!next_sel)
+ if (!next_sel) {
for(i = nextvisible(c->mon->clients); i && i == c; i = nextvisible(i->next));
if (i != c)
next_sel = i;
+ }
c->mon->sel = next_sel;
}
if (prev) {
XMapWindow(dpy, c->win);
focus(c);
if(key_buffering) {
+ // FIXME: try turning off buffering below where we send the virt keypresses
key_buffering = False;
grabkeys(); // stop grabbing typing keys
if(key_buffer_len > 0) {
}
}
key_buffer_len = 0;
+ // FIXME ie here
}
}