Questions tagged [xlib]

Xlib is a library used to communicate with X11 servers. This is the library that widget toolkits like GTK+, Qt, and Motif use to draw their graphics, and it's considered to be low-level.

Xlib is a library used to communicate with X11 servers.

This is the library that widget toolkits like GTK+, Qt, and Motif use to draw their graphics, and it's considered to be low-level. If you're looking for a high-level GUI toolkit, you're better off looking at those toolkits instead of using Xlib directly.

Xlib was first developed in 1985. The newer XCB library is intended to replace Xlib and take over its functions, but currently very few programs use XCB.

1036 questions
-1
votes
1 answer

segmentation fault in C, address points to zero page - XOpenDevice

I'm trying to use the X11 library to look at events from a specific device, but getting stuck at XOpenDevice. The code: #include "stdio.h" #include #include "string.h" #include "X11/extensions/XInput.h" #include "X11/Xlib.h" int main(int…
Levi
  • 661
  • 7
  • 26
-1
votes
1 answer

Xlib window manager not receiving ButtonPress event for xterm window

I have developed a window manager using Xlib, where I handle ButtonPress events to set the InputFocus on clicked windows. However, when I open an Xterm window within my window manager, I do not receive the ButtonPress event when clicking on the…
Gabriel Martins
  • 537
  • 4
  • 12
-1
votes
1 answer

Is it possible to add a global X11 binding via/to Sublime Text 3?

I would want to add a global X11 binding, preferably via ST3 configuration, that when activated, would: move the focus to a ST3 window and view, this would also involve switching to the right virtual desktop, invoke a sublime command (a text…
psprint
  • 349
  • 1
  • 10
-1
votes
1 answer

How to give focus to a single window in xorg?

I am not that well versed with xorg and the xlib libraray.I am not a C programmer.I installed st-simple terminal.Heard the fact that we can run only a terminal or a browser in xorg server without a window manager in a online article and confirmed it…
-1
votes
1 answer

Asynchronous XLib Error after creating context in LWJGL 3 - Linux

I am trying to make my java program cross platform which is why i tested it on linux and the results are pretty bad. Basically, after fixing some bugs and getting the native libraries to load correctly, i am greeted by this error message as the…
bohdloss
  • 1
  • 1
  • 1
-1
votes
1 answer

Is there a way to connect a process to X window manager?

I am running this process on Linux. This is a server process that does not have direct connection to X Server. The process needs to run an X utility tool ( xinput command). The xinput command is being fork off and exec from the server process. …
tadpole
  • 1,209
  • 7
  • 19
  • 28
-1
votes
2 answers

Libraries "X11/Xlib.h", "X11/Xutil.h", "unistd.h" for Windows

I've done a C program that takes the RGB values (0-255) of a pixel of the screen knowing its position (x,y). It works in Linux, but when I try to compile it in Visual Studio (Windows), crashes because libraries X11/Xlib.h, X11/Xutil.h, unistd.h…
Sergio
  • 844
  • 2
  • 9
  • 26
-1
votes
1 answer

Xlib + Unity Only close allowed action

I just want to make a sample app when the only possible action is close. Is this possible with Unity(Ubuntu) ? Do i make a mistake ? #include #include #include #include static void only_close(Display…
-1
votes
2 answers

C - how to read color of a screen pixel (FAST)? (in Windows)

So I am looking for a way to read a color of a screen pixel in C code. I already found implementation in C for *nix (which uses X11/Xlib library, that as I understood is for *nix systems only) and I tried the code on a linux machine, and it ran…
Matan
  • 59
  • 1
  • 6
-1
votes
3 answers

How does menu in linux works?

I would like to know how linux handles applications window menus. I am working on a panel application, but for starters I want to list menu items of currently focused window. Where should I start my research? Thanks TLDR (answer): in linux, every…
Daniel Pecher
  • 204
  • 2
  • 10
-1
votes
1 answer

What does this Release Modifier do?

I am currently programming a Window Manager for X11 using python-xlib. So far, I used myself the Simplewm by Sqizit as an orientation, which is orientated at PLWM. And in both WMs, you can find a Release Modifier, which is defined…
jazzpi
  • 1,399
  • 12
  • 18
-2
votes
1 answer

How do I handle non US keyboard layouts with Xlib and xkb?

I'm using a Swedish keyboard layout and can't get access to many keys such as the bracket keys since I have to press AltGr to get access to them. I'm using the XkbKeycodeToKeysym to translate keycodes to keysyms but I only get 0 as a keysym when…
LinusEPK
  • 13
  • 3
-2
votes
1 answer

How to create a program to read xlib code

Been a little bit rusty in coding but I figured I'd ask this question. I'm trying to create a program that can take a command line filename and scan said file in order to find coordinates of triangles in xlib. I know that xlib takes triangles in…
Marorin Q
  • 27
  • 7
-2
votes
1 answer

Capture global mouse press and release

I'd like to capture press and separately release of button 2 of my mouse. I wanted to use xbindkeys but afaik it doesn't give me such functionality. (does it?) This: http://developers-blog.org/blog/default/2010/08/10/XServer-Event-Handling-C-Example…
neo
  • 791
  • 5
  • 7
-3
votes
1 answer

Xlib is old? do developers use xlib framework? It was developed in 1985

Does anyone still use it? xlib seems such an old framework? what other major similar software is used instead of this old xlib? What is used instead of xlib?
ERJAN
  • 23,696
  • 23
  • 72
  • 146
1 2 3
68
69