Questions tagged [x11]

X11 is an extensible windowing system for bitmap displays. It forms the foundation of most Unix operating system GUIs.

The X Window System (commonly known as X11, based on its current major version being 11, or shortened to simply X, and sometimes informally X-Windows) is a computer software system and network protocol that provides a basis for graphical user interfaces (GUIs) and rich input device capability for networked computers. It creates a hardware abstraction layer where software is written to use a generalized set of commands, allowing for device independence and reuse of programs on any computer that implements X.

History

X originated at the Massachusetts Institute of Technology (MIT) in 1984. The protocol version has been X11 since September 1987. The X.Org Foundation leads the X project, with the current reference implementation, X.Org Server, available as free and open source software under the MIT License and similar permissive licenses.

The key design principles of X11 are

  • define methods, not policies
  • extensibility
  • network transparency
  • window based

A X11 system consists of

  • a X11 Server that connects with one or more display devices (called Screens), user input devices and accepts connections from so called…

  • X11 Clients which communicate with the X11 server to receive user input and draw graphics (into windows) through it.

References

3357 questions
55
votes
5 answers

Building a Window Manager

One of my new home projects will be a simple Window Manager, but before start I need to know some things: Which is the best language to do this? Where to get some resources to learn?
Nathan Campos
  • 28,769
  • 59
  • 194
  • 300
52
votes
7 answers

Is there a linux command to determine the window IDs associated with a given process ID?

Given a process iD of XX, I'd like to have a list of any window id's where _NET_WM_PID = XX. Even better would be the oldest still active window id if possible. I'm very new to linux, but what I'm trying to do is create a script that would take a…
David Korn
  • 1,091
  • 4
  • 12
  • 19
47
votes
4 answers

Can't load X11 in R after OS X Yosemite upgrade

Running into the following error when I try to use ggplot2 and plot within the console after upgrading to Yosemite: Error in (function (display = "", width, height, pointsize, gamma, bg, : X11 module cannot be loaded In addition: Warning…
raynach
  • 577
  • 1
  • 6
  • 10
46
votes
2 answers

How does X11 clipboard handle multiple data formats?

It probably happened to you as well - sometimes when you copy a text from some web page into your rich-text e-mail draft in your favorite webmail client, you dislike the fact that the pasted piece has a different font/size/weight.. it somehow…
mykhal
  • 19,175
  • 11
  • 72
  • 80
46
votes
2 answers

How do I gracefully exit an X11 event loop?

Almost every tutorial I find tells me to do this for my event loop: XEvent event; while (true) { XNextEvent(display, &event); switch (event.type) { case Expose: printf("Expose\n"); break; …
TheBuzzSaw
  • 8,648
  • 5
  • 39
  • 58
45
votes
8 answers

Xlib.h not found when building graphviz on Mac OS X 10.8 (Mountain Lion)

When using homebrew to install graphviz, the script gets to the point of "Making install in tkstubs" and then throws the following fatal error: In file included from tkStubLib.c:15: /usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not…
AntBrown
  • 737
  • 2
  • 7
  • 11
44
votes
4 answers

Run X application in a Docker container reliably on a server connected via SSH without "--net host"

Without a Docker container, it is straightforward to run an X11 program on a remote server using the SSH X11 forwarding (ssh -X). I have tried to get the same thing working when the application runs inside a Docker container on a server. When…
rubund
  • 7,603
  • 3
  • 15
  • 24
43
votes
2 answers

GIT push whines about untrusted X11 forwarding setup failed

I'm new to both git and OSX, coming from Ubuntu and svn. When I do a "git push" from the OSX terminal shell, I get the following warning: folklore$ git push origin master Warning: untrusted X11 forwarding setup failed: xauth key data not…
fishtoprecords
  • 2,394
  • 7
  • 27
  • 38
43
votes
5 answers

OpenGL without X.org in linux

I'd like to open an OpenGL context without X in Linux. Is there any way at all to do it? I know it's possible for integrated Intel graphics card hardware, though most people have Nvidia cards in their system. I'd like to get a solution that works…
Cheery
  • 24,645
  • 16
  • 59
  • 83
42
votes
3 answers

GTK implementation of MessageBox

I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL, so this isn't a GTK app. I handle the initialization (gtk_init) sort of stuff inside the MessageBox function as follows: int MessageBox(HWND hwnd, const char*…
Bernard
  • 45,296
  • 18
  • 54
  • 69
42
votes
8 answers

Why XGrabKey generates extra focus-out and focus-in events?

Does anyone know an xlib function to trap a keypress event without losing the original focus? How to get rid of it? (or "to use XGrabKey() without generating Grab-style focusout"?) (or "How to get rid of NotifyGrab and NotifyUngrab focus events at…
diyism
  • 12,477
  • 5
  • 46
  • 46
37
votes
2 answers

How to run an X program from outside the X session (e.g. from the console or SSH)

Without being the person logged in at the console, how do I run an X application and have it display on that X session? Assume I am either root, or I am the same user who logged in, so in principle I have persmission to do this. But how do I…
JasonSmith
  • 72,674
  • 22
  • 123
  • 149
36
votes
11 answers

How do you hide the mouse pointer under Linux/X11?

How do I hide the mouse pointer under X11? I would like to use the built in libraries in order to do this and not something like SDL (SDL_ShowCursor(0)) or glut (glutSetCursor(GLUT_CURSOR_NONE)). Also, the mouse pointer should be hidden no matter…
rck
  • 2,020
  • 2
  • 23
  • 23
36
votes
5 answers

Linux X11 - Global Keyboard Hook

Is it possible (or how) to create a mechanism (in Linux X11, C++) that works like a global hook in windows (SetWindowsHookEx())? I would like to be able to catch the key event but with the possibility of further propagation. I'm trying to use a…
Xeon
  • 5,949
  • 5
  • 31
  • 52
36
votes
14 answers

Forward X11 failed: Network error: Connection refused

I have a VPS which OS is CentOS6.3. I want to run startx via PuTTY and Xming. But, it produces this error: PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connection refused The whole condition: Using username…
TJM
  • 709
  • 1
  • 6
  • 11