summaryrefslogtreecommitdiff
path: root/src/Event.c
diff options
context:
space:
mode:
authorWalter Harms <wharms@bfs.de>2019-05-18 19:31:08 +0200
committerWalter Harms <wharms@bfs.de>2019-05-18 19:31:08 +0200
commitb3b86a2f6b974f5e040d64aa3778075c987bf0fa (patch)
treec04d723a0ed87619b134ff39db6284fe2e82b3d3 /src/Event.c
parent9c45da7cb487b8b6980ff3020468e0fb582bdd7f (diff)
save one indent level
Diffstat (limited to 'src/Event.c')
-rw-r--r--src/Event.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/Event.c b/src/Event.c
index 1c7c1a4..313f14e 100644
--- a/src/Event.c
+++ b/src/Event.c
@@ -110,16 +110,17 @@ EventMask XtBuildEventMask(
WIDGET_TO_APPCON(widget);
LOCK_APP(app);
- for (ev = widget->core.event_table; ev != NULL; ev = ev->next)
- if (ev->select) {
- if (!ev->has_type_specifier)
- mask |= ev->mask;
- else {
- if (EXT_TYPE(ev) < LASTEvent) {
- Cardinal i;
- for (i = 0; i < ev->mask; i++)
- if (EXT_SELECT_DATA(ev, i))
- mask |= *(EventMask*)EXT_SELECT_DATA(ev, i);
+ for (ev = widget->core.event_table; ev != NULL; ev = ev->next) {
+ if (! ev->select) continue;
+
+ if (!ev->has_type_specifier)
+ mask |= ev->mask;
+ else {
+ if (EXT_TYPE(ev) < LASTEvent) {
+ Cardinal i;
+ for (i = 0; i < ev->mask; i++)
+ if (EXT_SELECT_DATA(ev, i))
+ mask |= *(EventMask*)EXT_SELECT_DATA(ev, i);
}
}
}