changeset 30:2d00f53e223c

Focus.c: clang-format, away from old C style.
author ng0@n0.is
date Fri, 03 May 2019 18:38:58 +0000
parents 84f41615381b
children 4f05f52d7223
files Focus.c
diffstat 1 files changed, 14 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/Focus.c	Fri May 03 18:17:36 2019 +0000
+++ b/Focus.c	Fri May 03 18:38:58 2019 +0000
@@ -1,6 +1,7 @@
 #ifndef lint
-static char *rcsid_Focus_c = "$XConsortium: Focus.c,v 1.5 88/09/06 17:28:01 jim Exp $";
-#endif	/* lint */
+static char *rcsid_Focus_c =
+  "$XConsortium: Focus.c,v 1.5 88/09/06 17:28:01 jim Exp $";
+#endif /* lint */
 
 /*
  * Copyright 1985, 1986, 1987, 1988, 1989 by the
@@ -42,7 +43,6 @@
  */
 
 
-
 /*
  * MODIFICATION HISTORY
  *
@@ -58,13 +58,16 @@
 #include "uwm.h"
 #include <stdbool.h>
 
-bool Focus(window, mask, button, x, y)
-Window window;                          /* Event window. */
-int mask;                               /* Button/key mask. */
-int button;                           /* Button event detail. */
-int x, y;                               /* Event mouse position. */
+/*
+ * Window window: Event window.
+ * int mask: Button/key mask.
+ * int button: Button event detail.
+ * int x, y: Event mouse position.
+ */
+bool
+Focus (Window window, int mask, int button, int x, int y)
 {
-    XSetInputFocus(dpy, window, RevertToParent, CurrentTime);
-    FocusSetByUser = TRUE;
-    return(FALSE);
+        XSetInputFocus (dpy, window, RevertToParent, CurrentTime);
+        FocusSetByUser = TRUE;
+        return (FALSE);
 }