X Window Programming From Scratch笔记(1

来源:互联网 发布:阿里云邮箱登录名忘记 编辑:程序博客网 时间:2024/05/21 05:37

X Window Server


    The X Window Server is responsible ofr managing all resources available to a display

##The term display in X Window vernacular does not refer noly to the monitor associated with a workstation. A display is everything having to do with input and output for a specific system.

 ##A typical display is a single monitor, keyboard, and mouse. However, it can be simply a touch-type plasma screen, or, it can consist of several monitors, a graphics tablet and a keyboard.

##Whatever the hardware configuration for your workstation, the X Server is responsible for its management.

X Server启动过程

在SYSV系列的UNIX,X Server is generally added to an initlevel.

Initlevel stands for initalization level as dfined in the system file /etc/inittab.

Under the BSD family of UNIX,an entry can be made in the /etc/rc.local file to start the server

When the system is configured to automatically run X,the command for starting the server is xdm.(xdm, manages an X display by promping for login name and password, authenticating the user, and runnng a "session".)

Executing the xdm command starts the X display Manager, which enforces te user login process.After a user has successfully entered login ID and password, xmd launches the X server.

如果系统随机启动X Server,可以运行startx或者xinit启动X。


The Flow of Events int the X Client/Server Model

X Window System是基于事件驱动的。X Server发送display hardware产生的events给X Client。Events acted on bye a client in turn generate requests of the server。因为client需要时间处理从server接收到的event,server为所有的client按队列的形式管理event.client is responsible for removing the events from the queue and processing them.


The Critical Role of the Window Manager

An X Client know as a window manager is key to any desktop environment. A window manager is a special purpose application that provides the capability of X applications to be moved,resized,minimized,and restored dynamically by the user.

The window manager applies decorations to an application that enable the user to access these features.

To review, the X Server manages all display resources and relays events that occur in the hardware to the clients it serves. Further, the clients process the events and generate server requests.

Requests instruct the X Server to perform task such as creating, positioning,coloring,destroying,rendering,drawing,and clearing windows

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(486) | 评论(0) | 转发(0) |
0

上一篇:HRGN,剪裁区域

下一篇:LINUX,select

相关热门文章
  • linux 常见服务端口
  • xmanager 2.0 for linux配置
  • 【ROOTFS搭建】busybox的httpd...
  • openwrt中luci学习笔记
  • 什么是shell
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~