* src/ui/X11/event-Xt.c (x_handle_sticky_modifiers): This is a
false positive, but this little refactoring makes the analysis
easier...
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
struct x_device *xd;
KeyCode keycode;
int type;
+ bool key_event_p;
if (!modifier_keys_are_sticky) {
/* Optimize for non-sticky modifiers */
keycode > xd->x_keysym_map_max_code) {
return;
}
+ key_event_p = (type == KeyPress || type == KeyRelease);
- if (!((type == KeyPress || type == KeyRelease) &&
- x_key_is_modifier_p(keycode, d))) {
+ if (!( key_event_p && x_key_is_modifier_p(keycode, d))) {
/* Not a modifier key */
- bool key_event_p = (type == KeyPress || type == KeyRelease);
if (type == ButtonPress
|| (type == KeyPress