close
Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
104 views

I'm just trying to open an input method: #include <stdio.h> #include <X11/Xlib.h> int main() { Display *display = XOpenDisplay(nullptr); XSetLocaleModifiers(""); ...
Coarse Rosinflower's user avatar
1 vote
1 answer
101 views

I'm trying to render a basic image to a window with Cairo. I set up the window, then paint the image to it as I normally would: #include <threads.h> #include <time.h> #include <X11/...
Coarse Rosinflower's user avatar
0 votes
3 answers
161 views

The only thing I could find online about scrolling is that Xlib gives you scrolling events as regular XButtonEvents (since, you know, we obviously need to track both scroll button presses and releases)...
Coarse Rosinflower's user avatar
0 votes
2 answers
89 views

I'm trying to make a GUI app with Cairo, but whenever I resize the main window specifically inward, the background colour flickers in for a frame. There's a similar question about this, How to avoid ...
Coarse Rosinflower's user avatar
Advice
1 vote
2 replies
165 views

I am trying to understand how actually selections work in X11, like Primary and Clipboard selections. This question will have multiple questions inside it so I am sorry. I did my own research and ...
RudraSama's user avatar
2 votes
1 answer
69 views

I have a bitmap that I'm using for the background of a window in Xlib, but the pattern appears to be reversed (mirrored). The "shadow" should be in the upper-left of each square, but is ...
Mike's user avatar
  • 834
9 votes
1 answer
523 views

How can I get notified when the user minimizes or restores my X11 window? On very old Linux versions I could check for the UnmapNotify message to learn when the window is minimized and MapNotify when ...
Andreas's user avatar
  • 10.8k
3 votes
1 answer
74 views

I am trying to use XbaeMatrix to display tabular/matrix data but I do not want the cells to be editable. I can not find how to achieve that. This is what I have tried: /* * xbae_example.c * Minimal ...
M.E.'s user avatar
  • 5,717
2 votes
0 answers
78 views

I want to use the Motif MainWindow using: A container as work region A label as message window. But the label is not shown. My expectation is that it would be shown below the container (work region)....
M.E.'s user avatar
  • 5,717
1 vote
1 answer
132 views

I have a basic input grabber which looks like this: Display *display = NULL; int main(const int argc, const char *argv[]) { display = XOpenDisplay(NULL); if (!display) { return 1; ...
Coarse Rosinflower's user avatar
1 vote
1 answer
336 views

Preface: I'm aware fixed-function OpenGL is obsolete, I'm just using it for fun and learning. I'm trying to set up a classic fixed-function OpenGL context with Xlib and EGL. However, I'm getting ...
Sijmen Mulder's user avatar
0 votes
1 answer
111 views

I am having trouble getting the keyboard to function during my simulation program. My code that doesn't work: int running = 1; while (running) { // Process all pending X events while (XPending(...
Richard's user avatar
  • 25
2 votes
2 answers
404 views

I need to convert keycodes in X11 to symbols in another system. There's an easy function to convert Unicode characters to symbols for that system, so all I need to do for most keycodes is convert into ...
Coarse Rosinflower's user avatar
1 vote
0 answers
55 views

I have been working on a window manager and was able to get the icon from a X window via its ID. This script properly returns a Pillow Image object that I can use to get the icon of a window. However, ...
SpinningCubes's user avatar
1 vote
0 answers
88 views

I am working on a window manager made in Python 3 using python-xlib. When I tried to implement displaying the icons (as a PNG) on a window as a 16x16 image, it worked with this dummy image, but when I ...
SpinningCubes's user avatar

15 30 50 per page
1
2 3 4 5
73