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
1
vote
0 answers

Custom frame/decoration for specific X window

Is there any way to apply or have custom frames (images) around specific X windows? For example, in xfwm4 and fvwm (window managers) it's possible to have a specific window decoration for a window with different images, one at the bottom, other at…
1
vote
1 answer

How do I get the mouse's position relative to the terminal's window?

How can I get the mouse's position relative to the terminal on Linux? This is what I have so far: use std::ptr; use x11::xlib; fn main() { unsafe { let display = xlib::XOpenDisplay(ptr::null()); if display.is_null() { …
치큰0
  • 43
  • 2
  • 3
1
vote
0 answers

X11 Clipboard: What is a Window's property?

I'm trying to create a property so i can get clipboard data from other programs with XConvertSelection(), the code is: int main() { Display *dpy; Window owner, target_window, root; int screen; Atom selection, target_property, type; …
hakim
  • 33
  • 4
1
vote
1 answer

Fast 2D drawing for generated image

I have an application, which generates image. Each frame is completely different and can not be accelerated by using of textures or sprites. I want to draw with high rate, but best I got with SDL is about 8 fps at 2560x1440 by using SDL's…
George Shuklin
  • 6,952
  • 10
  • 39
  • 80
1
vote
1 answer

Show ggplot graphs in new window by default with X11

I'm on Ubuntu 18.04 using RStudio 1.4. I use the external device X11 to see graphics because I often need to have multiple plots shown at a time. I would like to have ggplot show each plot in a new device by default, as if a ggplot call was always…
Ben
  • 429
  • 4
  • 11
1
vote
0 answers

What are the bitmasks returned from AllocColorPlanes and AllocColorCells used for?

I cannot get my head around what is the exact meaning of AllocColorPlanes and AllocColorCells requests. I get that they allocate colors, to which I then refer to using pixel values and I understand what a plane mask in general terms is, as described…
MasFlam
  • 45
  • 6
1
vote
0 answers

Do I have to XFree the Display pointer in Xlib?

I'm making a Julia wrapper around Xlib and I don't know if the pointer to a Display that I get from XOpenDisplay has to be freed with XFree. The documentation doesn't hint toward that but I want to be safe and be sure I'm not allowing a memleak. The…
MasFlam
  • 45
  • 6
1
vote
1 answer

selective RECORD using python xlib?

I'm trying to implement clickable areas on the root window, using python xlib's RECORD extension. this is what i've got so far: import sys import os from Xlib import X, XK, display from Xlib.ext import record from Xlib.protocol import rq local_dpy…
nonchip
  • 1,084
  • 1
  • 18
  • 36
1
vote
1 answer

How to get the XId of a Gtk::Window in Gtkmm4

I am using Gtkmm4, and lots of API has been removed. In Gtk3 one could use Gtk::Window::get_xid (inherited from Gdk::Window), but thats not possible anymore, because Gdk::Window has been renamed to Gdk::Surface, and Gtk::Window seems to not inherit…
TheEagle
  • 5,808
  • 3
  • 11
  • 39
1
vote
0 answers

Where to set -nocursor for an openbox-session on raspbian buster

I'm using openbox-session to run a custom application on a touchscreen on raspian buster. I want to hide the X cursor effectively using startx -nocursor (or a config option that achieves the same) Where is the best place to add the -nocursor option…
CoderChris
  • 1,161
  • 2
  • 12
  • 20
1
vote
0 answers

VSCode - launching/debugging a native X11 application

Within VSCode 1.52.1 on Ubuntu 20.04 I am attempting to launch and debug a native C++ app compiled with gcc 9.3.0. As I am not remoting to another machine the Remote X11 extension is not apropos to what I am attempting to. My launch.json file is…
1
vote
1 answer

How do I create two toplevel windows in Xt/Motif?

To create a sample toplevel window the following code can be done. This is shown in documentation and Motif books (specifically this example is based on "Motif Essentials, Programming and More by Marshall Brain). #include #include…
M.E.
  • 4,955
  • 4
  • 49
  • 128
1
vote
0 answers

Incompatible integer to pointer conversion assigning to 'Widget' while compiling a basic OptionMenu example

I am trying to compile a basic window with an OptionMenu Motif Widget. This is what I tried: #include #include XtAppContext context; XmStringCharSet char_set=XmSTRING_DEFAULT_CHARSET; Widget toplevel; Widget …
M.E.
  • 4,955
  • 4
  • 49
  • 128
1
vote
1 answer

X11 how to properly send event using XSendEvent?

I'm trying to send a key press event to the X11 display but the events are not getting sent. Here's my current attempt: void sendEvent(int scanCode, bool isPressed) { unsigned long focusedWindow; int focusRevert; int mask = isPressed ?…
Animesh Sahu
  • 7,445
  • 2
  • 21
  • 49
1
vote
1 answer

GUI application via Docker - X11 - "Unable to init server"

I'm trying to run Firefox in a Debian docker image but can't connect to the X11 server. I'm using the method described here, but changed the base image to the latest Debian. I also changed the user creation method. Dockerfile FROM debian:latest …
pandita
  • 4,739
  • 6
  • 29
  • 51
1 2 3
99
100