commit 95dffe3f1acced721fbfc1bc5b40eff3d462ab7d
parent 443ed8370ed5ee97c41b4c8b45a08534172b3b0a
Author: garbeam <garbeam@mmv.wmii.de>
Date: Sat, 17 Dec 2005 11:29:27 +0200
some other bugfixes
Diffstat:
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/cmd/wm/client.c b/cmd/wm/client.c
@@ -345,7 +345,8 @@ void detach_detached(Client *c)
else {
if (c->next)
c->next->prev = c->prev;
- c->prev->next = c->next;
+ if (c->prev)
+ c->prev->next = c->next;
}
ndetached--;
}
diff --git a/cmd/wm/layout_column.c b/cmd/wm/layout_column.c
@@ -269,7 +269,8 @@ static void detach_col(Area *a, Client *c, Bool unmap)
{
Acme *acme = a->aux;
Frame *f = c->frame;
- Column *col = f->aux;
+ Cell *cell = f->aux;
+ Column *col = cell->col;
detach_client_from_frame(c, unmap);
if (!f->clients) {
diff --git a/cmd/wmiikeys.c b/cmd/wmiikeys.c
@@ -230,7 +230,7 @@ static void handle_shortcut_gkb(Window w, unsigned long mod, KeyCode key)
if (!files[K_LOOKUP]->content)
return;
- for (s = shortcuts; s && ((s->mod != mod) && (s->key != key)); s = s->next);
+ for (s = shortcuts; s && ((s->mod != mod) || (s->key != key)); s = s->next);
if (s && s->cmdfile && s->cmdfile->content) {
wmii_spawn(dpy, s->cmdfile->content);
return;
@@ -244,7 +244,7 @@ static void handle_shortcut(Window w, unsigned long mod, KeyCode key)
if (!files[K_LOOKUP]->content)
return;
- for (s = shortcuts; s && ((s->mod != mod) && (s->key != key)); s = s->next);
+ for (s = shortcuts; s && ((s->mod != mod) || (s->key != key)); s = s->next);
if (s && s->cmdfile && s->cmdfile->content) {
wmii_spawn(dpy, s->cmdfile->content);
return;
@@ -278,8 +278,7 @@ static void update()
shortcuts = nil;
if (grabkb) {
- XGrabKeyboard(dpy, root, True, GrabModeAsync,
- GrabModeAsync, CurrentTime);
+ XGrabKeyboard(dpy, root, True, GrabModeAsync, GrabModeAsync, CurrentTime);
return;
}
/* create new shortcuts */