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

SDL_CreateWindowFrom vs SDL_DestroyWindow X11 error SDL2

I get a window ID from the command line, and create an SDL window with it: Window window_id = from_cli(); // e.g. 0x34000c8 w = SDL_CreateWindowFrom((void*) (Window) window_id); When my program finishes I try to clean…
Zoltan K.
  • 1,036
  • 9
  • 19
1
vote
1 answer

What Vulkan swapchain does to the window system default framebuffer

I have few confusions about vulkan surface and its relation to swapchain and window system. As i have understood VkSurface is an abstraction of window and VkSwapchain is a frame buffers collection that we can present on this window. But as far as i…
E1Hephaestus
  • 67
  • 1
  • 5
1
vote
0 answers

Need to get the toplevel widget from an XtAppContext

I'm looking for something like XtWidgetToApplicationContext() however that would work the other way around ↔ return the toplevel widget from its application context. Is there such function? In general, how to obtain the widget from owning…
psprint
  • 349
  • 1
  • 10
1
vote
2 answers

XChangeProperty cannot write to clipboard

I want to put a string or bytes to the X11 selection so that when I switch to other applications, I can directly do a ctrl+p paste. I try to follow the documentation of the X11 clipboard mechanism. If I understand correctly, I need to use…
Changkun
  • 1,502
  • 1
  • 14
  • 29
1
vote
3 answers

How to route X11 Keyboard events into stdin like ghostscript does?

I'm trying to write a clone of ghostscript and I can't figure out how they make it so you can type into the graphics window, and the keystrokes show up in the terminal window as though you'd typed them there to begin with. So having received the…
luser droog
  • 18,988
  • 3
  • 53
  • 105
1
vote
2 answers

Unable to send keypress to Xvfb display using XTestFakeKeyEvent

Using this short snippet of code I am able to capture events from the keyboard (/dev/input/event1) and print them properly. However, sending them to the Xvfb display using XTestFakeKeyEvent does not work even if XTestFakeKeyEvent returns…
Az ayd
  • 11
  • 1
1
vote
1 answer

Without creating a window, is it possible to detect the current XCB modifier state?

I use the Xkb sticky option, and I would like to write a program that emits some text to stdout when the modifier key state changes, e.g. when Ctrl is "active" regardless of whether the physical Ctrl key is pressed. I want this program to be able to…
shadowtalker
  • 12,529
  • 3
  • 53
  • 96
1
vote
1 answer

Get text around input caret on Linux

Motivation: I'm trying to write scripts which send keystrokes to the currently focused window. Right now I use xdotool, which lets me send raw keystrokes. However, I want the exact keystrokes to be a function of the current text around the input…
1
vote
1 answer

I get Segmentation fault when using X11 C library with Zig

I'm trying to use X11 with Zig. Using the code from https://rosettacode.org/wiki/Window_creation/X11#Xlib as an example, I came up with this minimal example: const c = @cImport({ @cInclude("X11/Xlib.h"); }); pub fn main() void { var…
1
vote
1 answer

Correct way to send X11 mouse events

I am trying to write an X11 input driver that can use the touchscreen on my Android phone to move and click the mouse. I've gotten moving the mouse alright, but I'm having trouble getting the clicks recognized correctly by the applications. My…
Zhehao Mao
  • 1,789
  • 13
  • 13
1
vote
1 answer

X11 won't open a window

I am trying to open an X11 window, print out one pixel, and then later add code to make Terminate() return true. But it won't make a window. Here is my code: #include #include #include #include int…
1
vote
0 answers

How to directly run x11-apps(xeyes, glxgears) in colab hostruntime?

I know there are some solutions like x11-forwarding(ngrok), TurboVNC(virtualgl) could be useful. However, is that possible to directly run x11-apps in colab? I firstly installed xvfb and pyvirtualdisplay and then run !xeyes in colab, but what I saw…
1
vote
0 answers

Copy/Paste content of a Jupyter code cell into a xterm/uxterm terminal

I am trying to copy the code of a Jupyter Lab cell into uxterm. Traditionally you just select (highlight) the text with the mouse and then click the middle button of the mouse in the terminal (or in any other X11 application) and the highlighted…
M.E.
  • 4,955
  • 4
  • 49
  • 128
1
vote
0 answers

Yocto: How to integrate Gnome or lxde to my own image recipe?

How correct to integrate GUI(gnome, lxde) to my own build image. I use imx8qm
Ziegfried
  • 121
  • 2
  • 15
1
vote
1 answer

Locking mouse cursor in X11

I'm trying to move and lock a mouse cursor in place, to calculate it's delta position after it was moved by the user. I'm using X11 and the XWarpPointer() function. I found a similar problem in another thread and I followed it, but it didn't work. I…
1 2 3
99
100