[PATCH:libX11 1/2] XkbSelectEventDetails: remove unnecessary assignments
Alan Coopersmith
alan.coopersmith at oracle.com
Thu Dec 26 09:28:38 PST 2013
clear & selectAll are set to 0 already a few lines earlier,
affectWhich is set to XkbMapNotifyMask a few lines later.
None are used between the other assignments and the removed ones.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
src/xkb/XKB.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/xkb/XKB.c b/src/xkb/XKB.c
index 8a97959..6413ba2 100644
--- a/src/xkb/XKB.c
+++ b/src/xkb/XKB.c
@@ -169,9 +169,6 @@ XkbSelectEventDetails(Display *dpy,
/* doesn't. Make sure that we always request the stuff */
/* that the implicit support needs, and just filter out anything */
/* the client doesn't want later */
- req->affectWhich = 0;
- req->selectAll = 0;
- req->clear = 0;
req->affectMap = (CARD16) affect;
req->map = (CARD16) details | (XkbAllClientInfoMask & affect);
req->affectWhich = XkbMapNotifyMask;
--
1.7.9.2
More information about the xorg-devel
mailing list