diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-06-10 13:21:33 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-06-10 13:21:33 +0000 |
commit | 171e929a08098b6c844887adc43879c7579dc15f (patch) | |
tree | 6b4d2e3bc20dbd4dc9a1f031416e66614c53dd21 /xserver/Xi/setfocus.c | |
parent | 68781b09de2c95b87ea898c4ecf3018dfb4460d2 (diff) |
Update to xserver 1.12.2. tested by naddy@, krw@, mpi@.
Diffstat (limited to 'xserver/Xi/setfocus.c')
-rw-r--r-- | xserver/Xi/setfocus.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/xserver/Xi/setfocus.c b/xserver/Xi/setfocus.c index 03bc37acb..809184189 100644 --- a/xserver/Xi/setfocus.c +++ b/xserver/Xi/setfocus.c @@ -54,8 +54,8 @@ SOFTWARE. #include <dix-config.h> #endif -#include "windowstr.h" /* focus struct */ -#include "inputstr.h" /* DeviceIntPtr */ +#include "windowstr.h" /* focus struct */ +#include "inputstr.h" /* DeviceIntPtr */ #include <X11/extensions/XI.h> #include <X11/extensions/XIproto.h> @@ -74,13 +74,11 @@ SOFTWARE. int SProcXSetDeviceFocus(ClientPtr client) { - char n; - REQUEST(xSetDeviceFocusReq); - swaps(&stuff->length, n); + swaps(&stuff->length); REQUEST_SIZE_MATCH(xSetDeviceFocusReq); - swapl(&stuff->focus, n); - swapl(&stuff->time, n); + swapl(&stuff->focus); + swapl(&stuff->time); return (ProcXSetDeviceFocus(client)); } @@ -101,12 +99,12 @@ ProcXSetDeviceFocus(ClientPtr client) ret = dixLookupDevice(&dev, stuff->device, client, DixSetFocusAccess); if (ret != Success) - return ret; + return ret; if (!dev->focus) - return BadDevice; + return BadDevice; ret = SetInputFocus(client, dev, stuff->focus, stuff->revertTo, - stuff->time, TRUE); + stuff->time, TRUE); return ret; } |