📄 xcldisplay.c
字号:
/* $XConsortium: XClDisplay.c,v 11.24 91/12/19 18:06:28 rws Exp $ *//*Copyright 1985, 1990 by the Massachusetts Institute of TechnologyPermission 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"/* * XCloseDisplay - XSync the connection to the X Server, close the connection, * and free all associated storage. Extension close procs should only free * memory and must be careful about the types of requests they generate. */XCloseDisplay (dpy) register Display *dpy;{ register _XExtension *ext; register int i; extern void _XFreeQ(); if (!(dpy->flags & XlibDisplayClosing)) { dpy->flags |= XlibDisplayClosing; for (i = 0; i < dpy->nscreens; i++) { register Screen *sp = &dpy->screens[i]; XFreeGC (dpy, sp->default_gc); } if (dpy->cursor_font != None) { XUnloadFont (dpy, dpy->cursor_font); } ext = dpy->ext_procs; while (ext) { /* call out to any extensions interested */ if (ext->close_display != NULL) (*ext->close_display)(dpy, &ext->codes); ext = ext->next; } XSync(dpy, 1); /* throw away pending input events */ } _XDisconnectDisplay(dpy->fd); _XFreeDisplayStructure (dpy); _XFreeQ (); return;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -