summaryrefslogtreecommitdiff
path: root/xev.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-28 21:34:17 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-28 21:34:17 -0700
commita7882c4ab93100954e9e9a20f58e372bf6da612b (patch)
treeced28d3bea0b619592d247ae2201c0c353389f5a /xev.c
parenta808c25d8d08b6499ae3dd63dad416a75d172cc2 (diff)
Strip trailing whitespace
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xev.c')
-rw-r--r--xev.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/xev.c b/xev.c
index a54b794..a45590e 100644
--- a/xev.c
+++ b/xev.c
@@ -55,7 +55,7 @@ from the X Consortium.
#define OUTER_WINDOW_DEF_HEIGHT (OUTER_WINDOW_MIN_HEIGHT + 100)
#define OUTER_WINDOW_DEF_X 100
#define OUTER_WINDOW_DEF_Y 100
-
+
typedef unsigned long Pixel;
@@ -136,7 +136,7 @@ do_KeyPress (XEvent *eventp)
kc = XKeysymToKeycode(dpy, ks);
kc_set = True;
}
-
+
printf (" root 0x%lx, subw 0x%lx, time %lu, (%d,%d), root:(%d,%d),\n",
e->root, e->subwindow, e->time, e->x, e->y, e->x_root, e->y_root);
printf (" state 0x%x, keycode %u (keysym 0x%lx, %s), same_screen %s,\n",
@@ -166,7 +166,7 @@ do_KeyPress (XEvent *eventp)
}
}
- printf (" XFilterEvent returns: %s\n",
+ printf (" XFilterEvent returns: %s\n",
XFilterEvent (eventp, e->window) ? "True" : "False");
}
@@ -407,7 +407,7 @@ do_ReparentNotify (XEvent *eventp)
printf (" event 0x%lx, window 0x%lx, parent 0x%lx,\n",
e->event, e->window, e->parent);
- printf (" (%d,%d), override %s\n", e->x, e->y,
+ printf (" (%d,%d), override %s\n", e->x, e->y,
e->override_redirect ? Yes : No);
}
@@ -601,9 +601,9 @@ do_ClientMessage (XEvent *eventp)
if (mname) XFree (mname);
- if (e->format == 32
- && e->message_type == wm_protocols
- && (Atom) e->data.l[0] == wm_delete_window)
+ if (e->format == 32
+ && e->message_type == wm_protocols
+ && (Atom) e->data.l[0] == wm_delete_window)
exit (0);
}
@@ -814,8 +814,8 @@ do_RRNotify (XEvent *eventp)
static void
-set_sizehints (XSizeHints *hintp, int min_width, int min_height,
- int defwidth, int defheight, int defx, int defy,
+set_sizehints (XSizeHints *hintp, int min_width, int min_height,
+ int defwidth, int defheight, int defx, int defy,
char *geom)
{
int geom_result;
@@ -998,7 +998,7 @@ main (int argc, char **argv)
default:
usage ();
} /* end switch on - */
- } else
+ } else
usage ();
} /* end for over argc */
@@ -1042,19 +1042,19 @@ main (int argc, char **argv)
}
XFree (xim_styles);
}
- }
+ }
screen = DefaultScreen (dpy);
/* select for all events */
attr.event_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask |
ButtonReleaseMask | EnterWindowMask |
- LeaveWindowMask | PointerMotionMask |
+ LeaveWindowMask | PointerMotionMask |
Button1MotionMask |
Button2MotionMask | Button3MotionMask |
Button4MotionMask | Button5MotionMask |
ButtonMotionMask | KeymapStateMask |
- ExposureMask | VisibilityChangeMask |
+ ExposureMask | VisibilityChangeMask |
StructureNotifyMask | /* ResizeRedirectMask | */
SubstructureNotifyMask | SubstructureRedirectMask |
FocusChangeMask | PropertyChangeMask |
@@ -1071,7 +1071,7 @@ main (int argc, char **argv)
XSelectInput(dpy, w, attr.event_mask);
} else {
set_sizehints (&hints, OUTER_WINDOW_MIN_WIDTH, OUTER_WINDOW_MIN_HEIGHT,
- OUTER_WINDOW_DEF_WIDTH, OUTER_WINDOW_DEF_HEIGHT,
+ OUTER_WINDOW_DEF_WIDTH, OUTER_WINDOW_DEF_HEIGHT,
OUTER_WINDOW_DEF_X, OUTER_WINDOW_DEF_Y, geom);
if (reverse) {
@@ -1110,10 +1110,10 @@ main (int argc, char **argv)
}
if (xim && xim_style) {
- xic = XCreateIC (xim,
- XNInputStyle, xim_style,
- XNClientWindow, w,
- XNFocusWindow, w,
+ xic = XCreateIC (xim,
+ XNInputStyle, xim_style,
+ XNClientWindow, w,
+ XNFocusWindow, w,
NULL);
if (xic == NULL) {
@@ -1293,5 +1293,5 @@ main (int argc, char **argv)
}
XCloseDisplay (dpy);
- return 0;
+ return 0;
}