Lines Matching full:focus
49 * Extension function to get the focus for an extension device.
57 #include "windowstr.h" /* focus struct */
67 * This procedure gets the focus for a device.
81 * This procedure gets the focus for a device.
89 FocusClassPtr focus; in ProcXGetDeviceFocus() local
99 if (!dev->focus) in ProcXGetDeviceFocus()
109 focus = dev->focus; in ProcXGetDeviceFocus()
111 if (focus->win == NoneWin) in ProcXGetDeviceFocus()
112 rep.focus = None; in ProcXGetDeviceFocus()
113 else if (focus->win == PointerRootWin) in ProcXGetDeviceFocus()
114 rep.focus = PointerRoot; in ProcXGetDeviceFocus()
115 else if (focus->win == FollowKeyboardWin) in ProcXGetDeviceFocus()
116 rep.focus = FollowKeyboard; in ProcXGetDeviceFocus()
118 rep.focus = focus->win->drawable.id; in ProcXGetDeviceFocus()
120 rep.time = focus->time.milliseconds; in ProcXGetDeviceFocus()
121 rep.revertTo = focus->revert; in ProcXGetDeviceFocus()
138 swapl(&rep->focus); in SRepXGetDeviceFocus()