summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2011-07-31 19:32:09 +0200
committerportix <portix@gmx.net>2011-07-31 19:32:09 +0200
commit1442343eeee85596c91bc0a7d2ae8101ab660bb2 (patch)
tree36a04337a7b05131f0684854eb08c87817d35447 /src/util.c
parent259ba04de191ea56dc5d0bd1272bd609a1800b81 (diff)
downloaddwb-1442343eeee85596c91bc0a7d2ae8101ab660bb2.zip
Allow also shift modifier in comination with non printable characters
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index e85428d6..6a4048b9 100644
--- a/src/util.c
+++ b/src/util.c
@@ -68,6 +68,10 @@ dwb_modmask_to_string(guint modmask) {
mod[i] = "Mod4";
modmask ^= GDK_MOD4_MASK;
}
+ else if (modmask & GDK_SHIFT_MASK) {
+ mod[i] = "Shift";
+ modmask ^= GDK_SHIFT_MASK;
+ }
}
mod[i] = NULL;
char *line = g_strjoinv(" ", mod);