Questions tagged [x11]

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

Filter by
Sorted by
Tagged with
-2 votes
0 answers
13 views

Flet UI did not show by logging in via ssh. What's the problem?

I developped an app on debian10. It worked fine on local machine after packaging. But its UI did not show if I logging in via ssh -X with another computer. And there were no prompt messages. So I ...
demio's user avatar
  • 9
0 votes
1 answer
36 views

Why is xcb_key_symbols_alloc returning NULL on big screens?

I am calling xcb_key_symbols_alloc in my code (which i am testing in Xephyr). If the screen is smaller (e.g. 960x540), everything works fine, but when i try it on a bigger screen (e.g. 1280x720), it ...
Bobi's user avatar
  • 13
-1 votes
0 answers
28 views

X11 configure on Mac Ventura (M1)

I know this subject probably talked here a lot but sadly I still not figure it. I used to work with SecureCRT on Windows 11 and connected to my VDI session (Linux Machine), I enable x11 forwarding to ...
MacOS_user's user avatar
5 votes
0 answers
69 views

Capture system shortcut keys

If I press option/meta key and left/right arrow my X11 desktop environment will tile the current window to the left/right and the keystroke will never reach my app. What can I do so I can receive the ...
Adam's user avatar
  • 51
0 votes
0 answers
24 views

How do I set the icon name in the taskbar in Ubuntu?

I am new to this part of coding, so here i am trying to name the icon which is popped in the taskbar when we open an application. I have created test.c file for testing but it is not giving me the ...
Basavaraj Kittali's user avatar
2 votes
3 answers
52 views

x11 - sharing colormap between windows

I create a x11 window using XCreateWindow function. I create colormap this way: XSetWindowAttributes attribs = { 0 }; Colormap cmap = XCreateColormap(dpy, rootWindow, visualInfo->visual, AllocNone);...
Irbis's user avatar
  • 1,390
0 votes
0 answers
28 views

how to query the precise top-left absolute x,y coordinates of the gnome-terminal text window area under ubuntu?

For fun and learning, I'm writing an ncurses app in C under ubuntu which calls mvaddch to place an 'o' character as close as it can to the mouse position as I drag the mouse pointer around. The app ...
fromscratch's user avatar
0 votes
1 answer
28 views

Would I be able to use the XEmbed extension to implement titlebars, and arbitrary embedding of clients in my window manager?

I'm writing a window manager that is similar to AwesomeWM in that it will be configurable with lua, will have a UI system to awesome's wibox, but with some additional niceties like built-in animation ...
DesertCarMechanic's user avatar
0 votes
0 answers
81 views

How to build libx11-dev from source?

I have a stupid question. I'm trying to install the 32-bit development packages of Xlib on a 64-bit CentOS machine, for which I don't have root. Therefore, I'm thinking of compiling myself from the ...
Mythracis W's user avatar
0 votes
0 answers
24 views

Start lazarus FORM application from SSH Client

Does anybody know how to execute a lazarus application with forms from the SSH Client PUTTY on my WIN32 machine? So it piles up in the GUI while typing in my putty client. Great Thanks, Wouter, ...
Wouter van Wegen's user avatar
0 votes
0 answers
21 views

On X11, hiding the taskbar icon of a secondary glfw window is not working

Windows 10 | Ubuntu WSL Using native API I'm trying to hide the taskbar icon of a secondary glfw window but it's not working and icon is still visible. Here is the code: auto display = ...
Prashant's user avatar
  • 837
0 votes
1 answer
33 views

How to subscribe to different events and debug them in an xcb demo application?

I'm trying to create a simple application that interacts with the xcb library functions. My objective is to emulate the behavior of a simple window manager. From what I understood, I need to setup ...
gabriel_tiso's user avatar
  • 1,007
2 votes
1 answer
96 views

Running Docker container - X11 failed to open display :0

I have a project written in Golang using the Fyne framework. I am aware of the issues that are related to X11 when trying to Dockerize these type of applications. Here is my Dockerfile: FROM golang:1....
zayaanra's user avatar
0 votes
0 answers
37 views

How to generate a mouse scroll event using XCB on X11 on Linux?

Trying to send a mouse wheel scroll to a specific window. It can be done with the XTest extension xdotool uses: xdotool click 5 But this doesn't seem to target the specific window and doesn't work ...
Velkan's user avatar
  • 7,137
0 votes
1 answer
28 views

Xlib EnterNotify event not generated when expected (dwm)

I am running the 'dwm' tiling window manager. In another virtual terminal I have attached gdb to dwm using sudo gdb -p $(pidof dwm) and I have set a breakpoint on the enternotify function (b ...
C. Lang's user avatar
  • 463
0 votes
0 answers
67 views

XLib, memory leak when loading specific font string

When I try to load a font in Xlib via XLoadQueryFont with the following font name "fixed", the program does not leak, and everything is freed in the end. When I try to load another font, the ...
Socrates's user avatar
1 vote
0 answers
23 views

Makefiles for X11 project on macOS with xQuartz cannot find <X11/Xlib.h>

I am trying to setup a makefile for my graphics project. I am using X11 on macOS, so I have installed xQuartz. I checked my install folder /opt/X11/ and it has everything correctly. I am able to run ...
ajsdiubfaoishd's user avatar
0 votes
0 answers
21 views

How to correctly handle the save-yourself callback on the client side - XSMP?

I want to register the client on the session manager and handle the save-yourself callback when a user logs out from the session. The session manager should request all registered clients to call the ...
XoDefender's user avatar
0 votes
0 answers
28 views

Determine if wallpaper is set on x11

I am trying to determine if wallpaper is set on my x11 desktop. For that I am getting color of pixel using below code. The problem is that even when no wallpaper is set, It returns some random rgb ...
Madhur Ahuja's user avatar
  • 22.2k
1 vote
0 answers
35 views

How to get the keymap of the currently used keyboard?

I want to compare the currently active keyboard layout to one specific other keyboard layout. I can get a keymap of a specific (here Icelandic) keyboard like this: // get a keymap from a given name ( ...
user3443063's user avatar
  • 1,481
0 votes
0 answers
40 views

Unable to view launched xpra session on web browser

I am using xpra on centos 7 , I used the below command to start xpra: xpra start --bind-tcp=0.0.0.0:8080 --start=xterm After starting xpra session, when I connect from chrome using http://0.0.0.0:8080/...
Nitin Bishnoi's user avatar
0 votes
0 answers
23 views

Is there a mapping available between unicode characters and the X11/xkb/symbols keyboard layout key names (like odiaresis,..)?

In X11/xkb/symbols I find files for defining a keyboard layout. If I take the french (fr) for example I see which letters are assigned to which Key. This is clear for me if I have one character like a ...
user3443063's user avatar
  • 1,481
0 votes
2 answers
73 views

get inputs from OS application even if app is not active (Ubuntu)

Having some app, made with x11 libs, tested for ubuntu. It takes simple keyboard inputs and outputs corresponding value. It works fine if application window (ubuntu terminal) is currently open linux-...
Jack3n's user avatar
  • 1
0 votes
1 answer
50 views

How to run code GUI inside a Docker container on a remote server?

I have created a Docker container on a Linux server. I connected to this container from my laptop using VSCode and can run some code. However, I'm unable to run certain programs that require GUI, such ...
love7's user avatar
  • 1
1 vote
1 answer
84 views

Running a QT gui from docker

I am trying to dockerize and run a QT-based application which spawns a windowed app and pass it to my Ubuntu machine. What I have so far is : # syntax=docker/dockerfile:1 FROM ubuntu:xenial-20210804 ...
LateBird's user avatar
1 vote
0 answers
54 views

Is it possible to add shaders to windows in Wayland's rendering pipelines?

Considering not all X client programs respect (or are aware of) systemwide palette settings and other accessibility options, it'd be beneficial to be able to insert extra shader steps between the ...
rbanffy's user avatar
  • 2,339
2 votes
0 answers
52 views

virtual display in pure c. X11/xlib.h

I am working with an image taken from a virtual display. Is it possible to somehow get the pixel data in the RGBRGBRGB format in the data array of the image structure.... that is, only 3 components, ...
Bpwnz's user avatar
  • 31
0 votes
1 answer
81 views

Docker : how to resolve conflict betwen links and host type networking?

I try to dockerize a PyQt Application that connect to a containerized MariaDB server using mysqlalchemy. I am completely new to docker. With help on the Qt forum it seems that I could manage to make ...
Meaulnes's user avatar
  • 359
0 votes
0 answers
42 views

Disable touch event to specified screen on Ubuntu

I've configured two independent screens on Ubuntu 18.04 according to this. Now I want to confine touch input event on one of screen. xinput map-to-output 10 DP-1 doesn't work! xinput list ⎡ Virtual ...
sfzhang's user avatar
  • 669
-2 votes
1 answer
53 views

C and X11 problems with coloring text

I'm encountering a problem with X11 coloring text. In my program i have a redraw() function which is called each time there is a change, inside it i set the background color and foreground color, but ...
Tian's user avatar
  • 11
1 vote
0 answers
102 views

WebGL with GPU accelleration in Docker container or cloud service

I am trying to deploy WebGL application on a cloud service. My application is made in three.js and puppeteer and it works as an API, in which user sends a request with JSON as parameter and as a ...
artur_bryt's user avatar
0 votes
0 answers
70 views

Simulate Drag and drop from terminal in X11

INTRO I am working on a terminal based file manager called TUIFI, looking for ways to simulate drag-and-drop behaviours in X11 through terminals; specifically for a basic XDND protocol implementation. ...
Giorgos Xou's user avatar
  • 1,503
0 votes
1 answer
38 views

How do you add a scrolled text widget that grows with the size of its manager and takes the whole height?

I am trying to add a scrolled text widget that grows with the size of the application window. It will take all available space. It is intended to be a message area on the bottom of a Main application, ...
M.E.'s user avatar
  • 4,977
0 votes
1 answer
41 views

A good way to handle multiple windows in xcb

I'm working on an X11 app using xcb. The problem is, I want to make multiple windows, but I cannot find any way to tell from the event loop, from which window the event comes from. Should I open ...
nightingazer's user avatar
1 vote
0 answers
30 views

Problem with sending postmessage, sendmessage etc other apis to x11 forwarded window

I am trying to create a mirroring tool in c++ which takes keyboard input using getch() in a while loop and then sends it to the windows which I desire. I am using the approach mentioned here to send ...
tanmay001's user avatar
0 votes
0 answers
34 views

Why I am getting negative geometry x-offset from xwininfo?

In this example the x offset (+5066) is given ok in geometry data: But when the window is moved some pixels to right the x offset (-80) goes negative in geometry data: This is a Linux Debian 11 ...
mlauronen's user avatar
0 votes
0 answers
42 views

Issue with starting X session and tmux, "bad substitution"

When I log-in with the GDM, choosing any option (Currently, there are three options Ubuntu, XMonad and EXWM) the session doesn't properly starts. If I go to another tty, the terminal starts with the ...
BuddhiLW's user avatar
  • 608
-1 votes
1 answer
83 views

xlsfonts not showing .ttf fonts

The X11 Core font system should support ttf (truetype) & otf (opentype) formats: https://x.org/releases/X11R7.7/doc/xorg-docs/fonts/fonts.html I've DL a font f.ttf & placed it in /user/share/...
jzz11's user avatar
  • 47
0 votes
0 answers
155 views

Error : Error of failed request: BadAlloc (insufficient resources for operation) while rendering rectangles in tkinter

Error of failed request: BadAlloc (insufficient resources for operation) I wanted to render a good amount of rectangles using tkinter and it worked normally when number of rectangles were 10^6 but ...
Vatsalya Goswami's user avatar
0 votes
2 answers
81 views

Xlib and scrolling

I don't how to deal with scrolling a list of 1000 windows. I have 1000 windows in a column. The column is higher than the window, because every window in the list is 40 pixels high, so the column is ...
ANtlord's user avatar
  • 75
0 votes
0 answers
30 views

`xinput` does not affect mose movement directions on a rotated display

I'm trying to configure display rotation with the xrandr and transform mouse coordinate axis accordingly with the xinput in EndeavourOS with i3-wm v4.22 running on a VirtualBox 7.0.6. While the ...
Volodymyr Prokopyuk's user avatar
0 votes
1 answer
93 views

Why Is this X11 code not capturing mouse events?

I'm attempting to use XGrabPointer to grab pointer events, for a color picker that is part of a much bigger application, and I've set a mask to capture button press events, but it's not reporting ...
Menotdan's user avatar
  • 130
0 votes
0 answers
25 views

How do I block and capture mouse click events in X11?

I am looking to block mouse click events and bring them into my own callback hook based on X11 as the only dependency. I'm trying to make an eyedropper color picker, and I want to avoid unfocusing the ...
Menotdan's user avatar
  • 130
1 vote
0 answers
18 views

Interface not appearing (Dockerfile and X11)

I'm creating a Dockerfile that starts a java app that I created, nothing too complex as it is my first Docker project. It's for school, so I have some restriction : I have to start from debian:latest ...
Ottirate's user avatar
0 votes
2 answers
74 views

XGetImage() always returns BadMatch?

I'm trying to make a C++ Program for ubuntu which gets the rgb values of the Pixel hovered by the Mouse. To do that I need the XGetImage() function but it always returns an Error code (Badmatch). #...
thorax2077's user avatar
0 votes
2 answers
79 views

Embed Qt application into external window

I have Qt application that I want to render onto a window provided by external application in Linux / X environment. I know it is possible to start some applications and tell them to project ...
MateuszL's user avatar
  • 2,771
0 votes
0 answers
155 views

No X11 Display Variable was set ,but this program performed an operation which requires it

I am trying to run a Java application on Linux boxes but I am getting this exception: in java.awt.headless exception stating this No x11 display variable was set Also, this code works fine in my ...
Agrawal Rahil's user avatar
0 votes
1 answer
145 views

Drawing an image using xcb

I am trying to make an X11 window dump the content of a buffer using xcb.The code should fill the window with a white background, and a filled circle. Similar code works with XLib - so I am confident ...
elcuco's user avatar
  • 8,958
0 votes
1 answer
63 views

What do I implement to handle popup, and dialog windows ina custom X11 window manager?

I'm currently developing a simple window manager in C++ using Xlib. I've implemented a basic master/stack tiling algorithm, and what I've noticed is that whenever I open a "complex" app (...
Moosa's user avatar
  • 43
2 votes
0 answers
302 views

On wayland, why is my default Gtk display an X11Display?

I'm learning GTK4 and working with wayland (hyprland) on linux. When I try to retrieve the default display, my python code returns an X11Display. I figured out that the GDK_BACKEND environment ...
David's user avatar
  • 33

1
2 3 4 5
67