mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
Xi: consistenly name reply structs "reply" instead of "rep"
Preparation for future use of generic reply assembly macros. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
36503b11b7
commit
dbbbf14a83
@@ -87,25 +87,25 @@ ProcXGetDeviceFocus(ClientPtr client)
|
||||
|
||||
focus = dev->focus;
|
||||
|
||||
xGetDeviceFocusReply rep = {
|
||||
xGetDeviceFocusReply reply = {
|
||||
.RepType = X_GetDeviceFocus,
|
||||
.time = focus->time.milliseconds,
|
||||
.revertTo = focus->revert,
|
||||
};
|
||||
|
||||
if (focus->win == NoneWin)
|
||||
rep.focus = None;
|
||||
reply.focus = None;
|
||||
else if (focus->win == PointerRootWin)
|
||||
rep.focus = PointerRoot;
|
||||
reply.focus = PointerRoot;
|
||||
else if (focus->win == FollowKeyboardWin)
|
||||
rep.focus = FollowKeyboard;
|
||||
reply.focus = FollowKeyboard;
|
||||
else
|
||||
rep.focus = focus->win->drawable.id;
|
||||
reply.focus = focus->win->drawable.id;
|
||||
|
||||
if (client->swapped) {
|
||||
swapl(&rep.focus);
|
||||
swapl(&rep.time);
|
||||
swapl(&reply.focus);
|
||||
swapl(&reply.time);
|
||||
}
|
||||
|
||||
return X_SEND_REPLY_SIMPLE(client, rep);
|
||||
return X_SEND_REPLY_SIMPLE(client, reply);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user