summaryrefslogtreecommitdiff
path: root/src/buttons.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buttons.c')
-rw-r--r--src/buttons.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buttons.c b/src/buttons.c
index a7e90a2..a402248 100644
--- a/src/buttons.c
+++ b/src/buttons.c
@@ -307,9 +307,10 @@ bbar_handle_button_release(event_t *ev)
FREE(u);
}
return 1;
- } else if (buttonbar->current != drag) {
+ } else if (bbar->current != drag) {
D_ESCREEN(("Button for display %d dragged to display %d\n", fm, to));
ns_mov_disp(TermWin.screen, fm, to);
+ bbar->current = drag = NULL;
return 1;
}
}