[hackers] [dwm] applied Gottox' grabkey patch || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Tue, 2 Sep 2008 17:47:06 +0000 (UTC)

changeset: 1352:eb1eb9811706
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Tue Sep 02 18:47:01 2008 +0100
files: dwm.c
description:
applied Gottox' grabkey patch

diff -r 3f66d2d2cd6e -r eb1eb9811706 dwm.c
--- a/dwm.c Mon Sep 01 22:18:50 2008 +0100
+++ b/dwm.c Tue Sep 02 18:47:01 2008 +0100
@@ -763,10 +763,10 @@
 
                 XUngrabKey(dpy, AnyKey, AnyModifier, root);
                 for(i = 0; i < LENGTH(keys); i++) {
- code = XKeysymToKeycode(dpy, keys[i].keysym);
- for(j = 0; j < LENGTH(modifiers); j++)
- XGrabKey(dpy, code, keys[i].mod | modifiers[j], root, True,
- GrabModeAsync, GrabModeAsync);
+ if((code = XKeysymToKeycode(dpy, keys[i].keysym)))
+ for(j = 0; j < LENGTH(modifiers); j++)
+ XGrabKey(dpy, code, keys[i].mod | modifiers[j], root,
+ True, GrabModeAsync, GrabModeAsync);
                 }
         }
 }
Received on Tue Sep 02 2008 - 17:47:06 UTC

This archive was generated by hypermail 2.2.0 : Tue Sep 02 2008 - 17:48:04 UTC