summaryrefslogtreecommitdiff
path: root/Xi/getfocus.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-02-20 22:16:49 +0000
committerAdam Jackson <ajax@nwnk.net>2006-02-20 22:16:49 +0000
commit6d7083bd69724586338d79784655328f1fcd2ae5 (patch)
tree59f85a0e3892d181bffc5dba78e040e91b838a27 /Xi/getfocus.c
parent5480c537cee79b324736eac3e438a4713dfa1036 (diff)
indent fixes (OMG SO UGLY), and nuke old RCS keywords.
Diffstat (limited to 'Xi/getfocus.c')
-rw-r--r--Xi/getfocus.c38
1 files changed, 17 insertions, 21 deletions
diff --git a/Xi/getfocus.c b/Xi/getfocus.c
index 9cac93b0e..1bcb67321 100644
--- a/Xi/getfocus.c
+++ b/Xi/getfocus.c
@@ -1,5 +1,3 @@
-/* $Xorg: getfocus.c,v 1.4 2001/02/09 02:04:34 xorgcvs Exp $ */
-
/************************************************************
Copyright 1989, 1998 The Open Group
@@ -45,7 +43,6 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
********************************************************/
-/* $XFree86: xc/programs/Xserver/Xi/getfocus.c,v 3.2 2001/01/17 22:13:24 dawes Exp $ */
/***********************************************************************
*
@@ -59,14 +56,14 @@ SOFTWARE.
#include <dix-config.h>
#endif
-#include <X11/X.h> /* for inputstr.h */
-#include <X11/Xproto.h> /* Request macro */
-#include "windowstr.h" /* focus struct */
-#include "inputstr.h" /* DeviceIntPtr */
+#include <X11/X.h> /* for inputstr.h */
+#include <X11/Xproto.h> /* Request macro */
+#include "windowstr.h" /* focus struct */
+#include "inputstr.h" /* DeviceIntPtr */
#include <X11/extensions/XI.h>
#include <X11/extensions/XIproto.h>
#include "extnsionst.h"
-#include "extinit.h" /* LookupDeviceIntRec */
+#include "extinit.h" /* LookupDeviceIntRec */
#include "exglobals.h"
#include "getfocus.h"
@@ -84,8 +81,8 @@ SProcXGetDeviceFocus(register ClientPtr client)
REQUEST(xGetDeviceFocusReq);
swaps(&stuff->length, n);
- return(ProcXGetDeviceFocus(client));
- }
+ return (ProcXGetDeviceFocus(client));
+}
/***********************************************************************
*
@@ -96,19 +93,18 @@ SProcXGetDeviceFocus(register ClientPtr client)
int
ProcXGetDeviceFocus(ClientPtr client)
{
- DeviceIntPtr dev;
- FocusClassPtr focus;
+ DeviceIntPtr dev;
+ FocusClassPtr focus;
xGetDeviceFocusReply rep;
REQUEST(xGetDeviceFocusReq);
REQUEST_SIZE_MATCH(xGetDeviceFocusReq);
- dev = LookupDeviceIntRec (stuff->deviceid);
- if (dev == NULL || !dev->focus)
- {
+ dev = LookupDeviceIntRec(stuff->deviceid);
+ if (dev == NULL || !dev->focus) {
SendErrorToClient(client, IReqCode, X_GetDeviceFocus, 0, BadDevice);
return Success;
- }
+ }
rep.repType = X_Reply;
rep.RepType = X_GetDeviceFocus;
@@ -123,14 +119,14 @@ ProcXGetDeviceFocus(ClientPtr client)
rep.focus = PointerRoot;
else if (focus->win == FollowKeyboardWin)
rep.focus = FollowKeyboard;
- else
+ else
rep.focus = focus->win->drawable.id;
rep.time = focus->time.milliseconds;
rep.revertTo = focus->revert;
- WriteReplyToClient (client, sizeof(xGetDeviceFocusReply), &rep);
+ WriteReplyToClient(client, sizeof(xGetDeviceFocusReply), &rep);
return Success;
- }
+}
/***********************************************************************
*
@@ -140,7 +136,7 @@ ProcXGetDeviceFocus(ClientPtr client)
*/
void
-SRepXGetDeviceFocus (ClientPtr client, int size, xGetDeviceFocusReply *rep)
+SRepXGetDeviceFocus(ClientPtr client, int size, xGetDeviceFocusReply * rep)
{
register char n;
@@ -149,4 +145,4 @@ SRepXGetDeviceFocus (ClientPtr client, int size, xGetDeviceFocusReply *rep)
swapl(&rep->focus, n);
swapl(&rep->time, n);
WriteToClient(client, size, (char *)rep);
- }
+}