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
26
votes
2 answers

Resizing an Xvfb display

Simple Question: Is there a way to resize a Xvfb display? I tried with RandR but it seems that the RandR extension is not supported by Xvfb. Are there other ways to resize the screen? Thanks for your help!
Erik
  • 11,944
  • 18
  • 87
  • 126
26
votes
8 answers

Creating a window manager for Linux

I want to create a simple stacking window manager (in C) for private use, mainly for the purpose of learning and challenging myself. I've looked through twm's source code which has relatively few bells and whistles but it seems very low level since…
Iceland_jack
  • 6,848
  • 7
  • 37
  • 46
25
votes
6 answers

Why is DirectFB not more widely used in GNU/Linux? Are there crippling limitations to it that don't exist in X11?

As far as I understand, DirectFB offers hardware acceleration for many kinds of graphics cards. Additionally, it's smaller, faster, and uses up less memory than X11. Why then, is it not more mainstream than it is now? Here's what I'm really unsure…
user377628
25
votes
6 answers

Ignore auto repeat in X11 applications

If you press and hold a key in X11 while AutoRepeat is enabled, you continuously receive KeyPress and KeyRelease events. I know that AutoRepeat can be disabled using the function XAutoRepeatOff(), but this changes the setting for the whole X…
mzuther
  • 1,158
  • 1
  • 13
  • 24
25
votes
5 answers

What do I need to do to link with xlib?

I am using GCC, what switches do I need to add to link with Xlib? After searching, all I could find was -lX11, but that gave me ld: library not found for -lX11 I am using a mac (10.6), but I would not like anything that is Mac specific.
Jeffrey Aylesworth
  • 8,242
  • 9
  • 40
  • 57
25
votes
2 answers

How to run R scripts on servers without X11

I want to run R scripts and save the plots using png(). X11 is not supported on the Unix servers and I get the following error message: Error in X11(paste("png::", filename, sep = ""), g$width, g$height, pointsize, : unable to start device…
Matthias Munz
  • 3,583
  • 4
  • 30
  • 47
24
votes
2 answers

Hiding mouse cursor with glfw

I'm working with a game made with glfW and running in Ubuntu. My problem is that hiding the mouse cursor with the line glfwDisable(GLFW_MOUSE_CURSOR); causes some machines to simply disregard the mouse input, and thus breaks the game. Has anyone…
JMCampos
  • 636
  • 1
  • 9
  • 21
24
votes
3 answers

Getting X client to reload .Xcompose?

Fedora 20, xorg 1.14.4-11. I run with a lot of terminal windows open, and I make heavy use of the compose/multi-key mechanism. One of the most frustrating things is that after altering my ~/.Xcompose file, I need to start new terminal windows in…
RoUS
  • 1,888
  • 2
  • 14
  • 29
24
votes
5 answers

How to programmatically switch to a specific window in compiz?

Is there a command to tell compiz that we want to bring in front and set focus to a specific window? How should we identify the window in that command? The reason behind this question is the following use-case: Suppose we have a wiki to keep notes…
FossilBit
  • 503
  • 4
  • 7
24
votes
5 answers

Error: cannot open display: localhost:0.0 - trying to open Firefox from CentOS 6.2 64bit and display on Win7

I am on a Windows7 machine and I'm trying to get firefox to open on the centOS machine, but be displayed on my current screen. When typing firefox in terminal, I am getting the following error: Error: cannot open display: localhost:0.0 To setup…
SaiyanGirl
  • 16,376
  • 11
  • 41
  • 57
23
votes
4 answers

Raster graphics in xterm?

No, not ASCII graphics, see the screenshot here: http://en.wikipedia.org/wiki/W3m How is that even possible? I checked the source and it only prints character sequences. However, I am unable to find any reference to graphic drawing or image…
user14554
22
votes
4 answers

linux image from clipboard

I'd like to access the graphics in the linux clipboard, to save it as a file. I'm doing this in a Python/Tkinter program, so I asked about it (http://stackoverflow.com/questions/6817600/save-the-image-in-the-clipboatd-in-python-tkinter) but…
alessandro
  • 3,838
  • 8
  • 40
  • 59
22
votes
4 answers

Linking error: DSO missing from command line

I am rather new to Linux (using Ubuntu 14.04 LTS 64bit), coming from Windows, and am attempting to port over an existing CUDA project of mine. When linking via /usr/local/cuda/bin/nvcc -arch=compute_30 -code=sm_30,compute_30 -o Main.o Display.o…
Will Bolden
  • 810
  • 1
  • 7
  • 13
22
votes
6 answers

How to set mouse cursor position in C on linux?

how can I set the mouse cursor position in an X window using a C program under Linux? thanks :) (like setcursorpos() in WIN) EDIT: I've tried this code, but doesn't work: #include main(){ move(100, 100); refresh(); }
frx08
  • 4,222
  • 8
  • 37
  • 45
21
votes
3 answers

X11 Wait for and Get Clipboard Text

I have to monitor the X11 Clipboard. For the moment, I request the ClipBoard Selection each 5 seconds, then I hash the text returned from clipboard and I compare it with the hash calculate from the last check. If hash are not the same, I analysis…
Josh Brian
  • 211
  • 2
  • 3