From b7cce353157e95bb6642fe659705984921272435 Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Sun, 5 Jun 2011 00:16:07 -0300 Subject: [PATCH] Only add cards to a block if they are exposed. --- src/keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index da6043c..b82fe8f 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -130,7 +130,8 @@ static void handle_card_movement(struct cursor *cursor) { case 'm': if (origin == cursor_stack(cursor) && maneuvre_stack(*origin)) { for (struct stack *i = *origin; i && i->next; i = i->next) { - if ((i->card->frame->begin_y - i->next->card->frame->begin_y) > 1) { + if (i->next->card->face == EXPOSED && + (i->card->frame->begin_y - i->next->card->frame->begin_y) > 1) { erase_stack(*origin); mark_card(i->next->card); draw_stack(*origin);