xselinput.c
来自「早期freebsd实现」· C语言 代码 · 共 34 行
C
34 行
/* $XConsortium: XSelInput.c,v 11.9 91/01/06 11:47:50 rws Exp $ *//* Copyright Massachusetts Institute of Technology 1986 *//*Permission to use, copy, modify, distribute, and sell this software and itsdocumentation for any purpose is hereby granted without fee, provided thatthe above copyright notice appear in all copies and that both thatcopyright notice and this permission notice appear in supportingdocumentation, and that the name of M.I.T. not be used in advertising orpublicity pertaining to distribution of the software without specific,written prior permission. M.I.T. makes no representations about thesuitability of this software for any purpose. It is provided "as is"without express or implied warranty.*/#include "Xlibint.h"XSelectInput (dpy, w, mask) register Display *dpy; Window w; long mask;{ register xChangeWindowAttributesReq *req; LockDisplay(dpy); GetReqExtra (ChangeWindowAttributes, 4, req); req->window = w; req->valueMask = CWEventMask; OneDataCard32 (dpy, NEXTPTR(req,xChangeWindowAttributesReq), mask); UnlockDisplay(dpy); SyncHandle();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?