summaryrefslogtreecommitdiff
path: root/src/Keyboard.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-06-17 20:44:12 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2022-06-18 06:36:49 -0400
commit806aefc8c6175b6252a300905a327e9d60939af7 (patch)
treef6413008b2fc8c274598c89e70faf147c45b0d4d /src/Keyboard.c
parenta80c543bb9955199619a2cb6280b89a879fd8811 (diff)
cppcheck fixes (const, null dereferencing, uninitialized, scope)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
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;
}
}
}