diff options
author | Thomas White <taw@bitwiz.org.uk> | 2016-04-28 22:03:58 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2016-04-28 22:03:58 +0200 |
commit | 75967f41675ca5f4c9112460b67a2e77733eb1e4 (patch) | |
tree | 9075370cd34f170151782a6a9a372470b5d60839 | |
parent | cec7f1f7b8abc32eaff06e9116af2a38ba67f9bd (diff) |
Don't close the test card on modifier key presses
-rw-r--r-- | src/testcard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcard.c b/src/testcard.c index f336f31..35c6568 100644 --- a/src/testcard.c +++ b/src/testcard.c @@ -1,7 +1,7 @@ /* * testcard.c * - * Copyright © 2013-2015 Thomas White <taw@bitwiz.org.uk> + * Copyright © 2013-2016 Thomas White <taw@bitwiz.org.uk> * * This file is part of Colloquium. * @@ -169,7 +169,7 @@ static gboolean draw_sig(GtkWidget *da, cairo_t *cr, struct testcard *tc) static gboolean key_press_sig(GtkWidget *da, GdkEventKey *event, struct testcard *tc) { - gtk_widget_destroy(tc->window); + if ( !event->is_modifier ) gtk_widget_destroy(tc->window); return FALSE; } |