x11

XFree86、X11、X-window、窗口管理器、GNOME、KDE的关系

╄→尐↘猪︶ㄣ 提交于 2019-12-01 17:30:18
本文转自:http://pangaoyuan.iteye.com/blog/1165210 ####################### //声明: 1 本帖分享者是: pgy20032000 ,至此感谢! 2 红色背景字体为本人阅读重点! ####################### XFree86、X11、X-window、窗口管理器、GNOME、KDE的关系 一、XFree86、X11的关系是什么??? 二、X-window、窗口管理器、GNOME、KDE的关系是什么??? 三、X-window和XFree86、X11是什么联系呢??? X11是一个协议的名字,X协议第11版; XFree86是一个软件包,是众多实现X11协议的软件包中的一个; X-Window泛指所有在X11基础上实现的GUI环境 在很多情况下 xwindows =x11 窗口管理器是一种特殊的X应用程序,任务是给其他X应用程序包装上窗口; KDE和GNOME是两种常见的窗口环境,其中包括了窗口管理器和其他程序。 一,linux本身没有图形界面,linux现在的图形界面的实现只是linux下的应用程序实现的. 图 形界面并不是linux的一部分,linux只是一个基于命令行的操作系统, linux和Xfree的关系就相当于当年的DOS和 WINDOWS3.0一样 ,windows3.0不是独立的操作系统

Drawing on the X root window

微笑、不失礼 提交于 2019-12-01 15:52:36
I'd like to be able to draw on the root window in Linux. I.e. make an OSD. I'm using Gnome. Code samples or links to them would be appreciated. It is possible, but you will not see anything in GNOME. Nautilus, GNOME's file manager, opens its own window on top of root X window to display icons. Because of that the root X window is fully covered... so there is no point in drawing on it. If you want to make OSD, either you should use a library like XOSD , or open your own X window and make it translucent. In fact, XOSD's source code should be a good example of how to do this. Whole library seems

Capture and interpret XI2 RawKeyPress event with python

Deadly 提交于 2019-12-01 10:13:04
问题 Self resolved It's posted below as an answer. Trying to get what xinput test-xi2 --root prints with python xlib. Using version 1.9 from github: https://github.com/python-xlib/python-xlib event._data["data"] contents for aaaaoo: a<class 'Xlib.ext.ge.GenericEvent'>(data = b'\t\x00\xa9!v\x17&\x00\x00\x00\t\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', sequence_number = 15, length = 2, evtype = 13, extension = 131, type = 35) <class 'Xlib.ext.ge.GenericEvent'>(data

How do I find a window at a certain point on the screen for screenshot/screen-recording purposes?

a 夏天 提交于 2019-12-01 09:43:15
问题 I'm looking for a way to do what the equivalent of WindowFromPoint and GetWindowRect do, in Carbon/Cocoa and X11. WindowFromPoint - http://msdn.microsoft.com/en-us/library/ms633558%28VS.85%29.aspx GetWindowRect - http://msdn.microsoft.com/en-us/library/ms633519%28VS.85%29.aspx 回答1: I am developing screenshot and screen recording apps … Use Quartz Window Services. I want to … determine the bounding rectangle of the window, and then use the coordinates of the window to capture a bitmap of that

How to observe changes in connected monitors via Xlib?

为君一笑 提交于 2019-12-01 09:29:15
I'm trying to write a program that would detect external monitors being plugged in and automatically enable and configure them through Xlib. I know that there is XRandr extension that allows this. My question is, how do I enable receiving XRandr events to my application? What event mask should I use? I know that xev app is able to do this. Xev's source code: http://cgit.freedesktop.org/xorg/app/xev/tree/ Or: git clone git://anongit.freedesktop.org/xorg/app/xev For the second part, I issue the configuration directly to nvidia-settings. I've cobbled together the first part from parts that I was

What dummy X server should I use with openoffice on debian?

一曲冷凌霜 提交于 2019-12-01 08:41:15
I need to run openoffice in batch mode to turn .doc files into pdf, but openoffice won't start because it needs an X server. My linux box doesn't have one. Is there some dummy blackhole X server around I can use? I'm using debian etch. You could maybe try xvfb In the X Window System, Xvfb or X virtual framebuffer is an X11 server that performs all graphical operations in memory, not showing any screen output. From the point of view of the client, it acts exactly like any other server, serving requests and sending events and errors as appropriate. However, no output is shown. This virtual

Finding the number of X11 screens from Haskell

浪子不回头ぞ 提交于 2019-12-01 07:42:35
问题 I'd like to know how many X screens the current machine has, to make my .xmonad a little more general; I have a netbook as well as a desktop with two monitors, and I use several single monitored machines too. To this end, I'd like to be able to find out how many X screens the current machine has. (I think screens is the correct words, I mean physical monitors). The reason being is that I want multiple instances of xmobar, one per monitor. I've hard coded it to be on two at the moment. 回答1: If

ld can't find X11 library on OSX Leopard

怎甘沉沦 提交于 2019-12-01 06:33:39
I have a pretty basic X11 app that I run on Linux that I'm trying to get compiled under OSX 10.5.8. I have X11 and the X11 SDK installed, and modified the makefile as follows: CFLAGS = -L/usr/X11/lib -I/usr/X11/include Everything compiles fine, but the linker can't find the X11 lib. ld: library not found for -lX11 I've looked on google, but the only other people I've found with this problem so far either didn't have the X11 SDK installed or didn't know about the -L flag. Any ideas? You may be looking in the wrong location for the library; it's certainly in a different location on my OS X box.

FLTK in MSVC needs x11 headers?

♀尐吖头ヾ 提交于 2019-12-01 05:58:34
I'm trying to learn how to use FLTK right now (In MSVC 2008). I got all the the libraries compiled correctly, but when I tried to run this program: #include "FL/Fl.H" #include "FL/Fl_Window.H" #include "FL/Fl_Box.H" int main(int argc, char *argv[]) { Fl_Window *window = new Fl_Window(340, 180); Fl_Box *box = new Fl_Box(20, 40, 300, 100, "Hello, World!"); box->box(FL_UP_BOX); box->labelfont(FL_BOLD + FL_ITALIC); box->labelsize(36); box->labeltype(FL_SHADOW_LABEL); window->end(); window->show(); return Fl::run(); } I got this error 1>c:\fltk\fl\xutf8.h(33) : fatal error C1083: Cannot open

What dummy X server should I use with openoffice on debian?

[亡魂溺海] 提交于 2019-12-01 05:37:12
问题 I need to run openoffice in batch mode to turn .doc files into pdf, but openoffice won't start because it needs an X server. My linux box doesn't have one. Is there some dummy blackhole X server around I can use? I'm using debian etch. 回答1: You could maybe try xvfb In the X Window System, Xvfb or X virtual framebuffer is an X11 server that performs all graphical operations in memory, not showing any screen output. From the point of view of the client, it acts exactly like any other server,