summaryrefslogtreecommitdiff
path: root/src/XGtFocus.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-03-31 14:50:24 +0000
committerDaniel Stone <daniel@fooishbar.org>2006-03-31 14:50:24 +0000
commitf50ac4deec13dfd070715f636887e12f6301070f (patch)
treebe5857de4d38d644938ad796fcfaab2c37b9f99f /src/XGtFocus.c
parent6b055729fd0f89eedd2bf00befd8e42804f12b4a (diff)
Mass reindent. Sorry.XORG-7_0_99_901
Diffstat (limited to 'src/XGtFocus.c')
-rw-r--r--src/XGtFocus.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/XGtFocus.c b/src/XGtFocus.c
index 29e8de7..08cebd9 100644
--- a/src/XGtFocus.c
+++ b/src/XGtFocus.c
@@ -61,32 +61,31 @@ SOFTWARE.
#include "XIint.h"
int
-XGetDeviceFocus (dpy, dev, focus, revert_to, time)
+XGetDeviceFocus(dpy, dev, focus, revert_to, time)
register Display *dpy;
XDevice *dev;
Window *focus;
int *revert_to;
Time *time;
- {
- xGetDeviceFocusReq *req;
- xGetDeviceFocusReply rep;
- XExtDisplayInfo *info = XInput_find_display (dpy);
+{
+ xGetDeviceFocusReq *req;
+ xGetDeviceFocusReply rep;
+ XExtDisplayInfo *info = XInput_find_display(dpy);
- LockDisplay (dpy);
+ LockDisplay(dpy);
if (_XiCheckExtInit(dpy, XInput_Initial_Release) == -1)
return (NoSuchExtension);
- GetReq(GetDeviceFocus,req);
+ GetReq(GetDeviceFocus, req);
req->reqType = info->codes->major_opcode;
req->ReqType = X_GetDeviceFocus;
req->deviceid = dev->device_id;
- (void) _XReply (dpy, (xReply *) &rep, 0, xTrue);
+ (void)_XReply(dpy, (xReply *) & rep, 0, xTrue);
*focus = rep.focus;
*revert_to = rep.revertTo;
*time = rep.time;
UnlockDisplay(dpy);
SyncHandle();
return (Success);
- }
-
+}