summaryrefslogtreecommitdiff
path: root/src/Keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Keyboard.c')
-rw-r--r--src/Keyboard.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Keyboard.c b/src/Keyboard.c
index 71d8d12..c6b4b48 100644
--- a/src/Keyboard.c
+++ b/src/Keyboard.c
@@ -346,11 +346,7 @@ FindKeyDestination(Widget widget,
device->grabType = XtPseudoPassiveServerGrab;
pdi->activatingKey = (KeyCode) event->keycode;
device->grab = *grab;
-
- if (grab)
- dspWidget = grab->widget;
- else
- dspWidget = focusWidget;
+ dspWidget = grab->widget;
}
}
}