diff options
author | Walter Harms <wharms@bfs.de> | 2019-05-18 19:31:08 +0200 |
---|---|---|
committer | Walter Harms <wharms@bfs.de> | 2019-05-18 19:31:08 +0200 |
commit | b3b86a2f6b974f5e040d64aa3778075c987bf0fa (patch) | |
tree | c04d723a0ed87619b134ff39db6284fe2e82b3d3 /src/Event.c | |
parent | 9c45da7cb487b8b6980ff3020468e0fb582bdd7f (diff) |
save one indent level
Diffstat (limited to 'src/Event.c')
-rw-r--r-- | src/Event.c | 21 |
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); } } } |