Questions tagged [xcb]

XCB, an "X-protocol C Binding", is a library for marshaling X Window System network protocol requests and responses. It is intended to replace Xlib.

XCB, an "X-protocol C Binding", is a library for marshaling X Window System network protocol requests and responses. It provides a C API for X clients to connect to and communicate with X servers.

XCB is intended to replace Xlib, the original X client library for C that dates to the mid 1980s. Modern releases of Xlib no longer do their own network access, leaving that work to XCB. This, together with small bits of extra API in both libraries, allows programs and libraries that were written against the Xlib API to incrementally migrate to using XCB instead. As a result, an increasing number of X-related libraries now rely on XCB even though they expose Xlib-style APIs.

If you just want to write graphical applications, you should look at high-level toolkits such as Gtk+ or Qt rather than the low-level protocol bindings like Xlib or XCB.

298 questions
0
votes
1 answer

What does 'void (*return_socket)(void *closure);' mean?

I am browsing though the XCB sources and I found this weird struct member: void (*return_socket)(void *closure); What does that mean? What's another way to write this?
Jeroen
  • 15,257
  • 12
  • 59
  • 102
0
votes
1 answer

XCB key inputs interception?

What is the code for intercept key inputs on XCB protocol? I can't find anything on the XCB documentation for that purpose (or i can't see the right piece of doc/code). I use Python, but a C example can be good for understand the code. thanks.
user2073384
0
votes
3 answers

xcb mouse motion causes input lag

I have written some basic OpenGL applications with XCB as the backend(xlib for GLX, of course) and in every test I have written when I move my mouse over the window it causes all input to get sort of "buffered" and only responds to the events after…
RamblingMad
  • 5,332
  • 2
  • 24
  • 48
0
votes
1 answer

xcb: how to launch an application and show it into a window

I'm trying to implement a basic window manager using xcb library. I managed to connect with X server, and grab some events, but i cannot figure how to launch an application and show it inside the current X session. I'm trying to follow the xcb…
Ivan
  • 4,186
  • 5
  • 39
  • 72
0
votes
1 answer

Why is the lock activated by XInitThreads non-recursive?

Consider the following call flow: Function A calls XCheckIfEvent passing a pointer to function B in the predicate parameter. Function B calls XGetWindowProperty. If XLib is initialized with the XInitThreads function, the above call flow hangs at the…
Gabor Herman
  • 186
  • 1
  • 6
0
votes
1 answer

Qt vs XCB: How powerful is Qt to do low level tasks?

I'm trying to create a program to lock the screen of a computer with Linux OS which is to be unlocked using my own authentication mechanism. Can I do it in Qt alone( The lock screen, the ability to switch to the lock screen ...) or do I need to…
Alexander Suraphel
  • 10,103
  • 10
  • 55
  • 90
0
votes
1 answer

swig xcb lib and ruby

I want to create a basic ruby module for xcb for my own use. I tried a basic test where I wrap header file with swig: here is my xcb_ruby.i %module ruxcby %{ #include #include #include
cedlemo
  • 3,205
  • 3
  • 32
  • 50
-1
votes
0 answers

qt.qpa.xcb: could not connect to display :1.0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found

I have been trying to run Docker container on my laptop. When I run the command inside the container which GUI is required. I get the following error: qt.qpa.xcb: could not connect to display :1.0 qt.qpa.plugin: Could not load the Qt platform plugin…
-1
votes
2 answers

Could not load the Qt platform plugin "xcb" in "path" even though it was found

I am trying to plot things with pyplot on linux using pycharm. However, every time I try to show a plot I get the following error. QObject::moveToThread: Current thread (0x556ba671bce0) is not the object's thread (0x556ba6a9dc30). Cannot move to…
-1
votes
1 answer

"‘string’ undeclared" in code from "Basic Graphics Programming With The XCB Library"

Here was the code that caused the problem: #include #include #include int main () { xcb_connection_t *c; xcb_screen_t *screen; xcb_window_t win; char *title = "Hello World !"; …
s0s
  • 45
  • 9
-2
votes
1 answer

Reparenting wm and BadWindow errors

I'm writing a reparenting window manager in XCB and C++:http://ix.io/3yNo At the moment it works pretty well, but occasionally when I close a window, all the windows of that application close because the process exits with a BadWindow. For example…
gsb
  • 67
  • 2
  • 9
-2
votes
1 answer

How do you install xcb on Macos

Currently I am creating a little game and now I need to use xcb, Ive tried using brew but that has not worked. Any solutions?
javid
  • 1
  • 3
-3
votes
1 answer

catch that new QApplication failed and try something else

I have two programs. One call SelectScreen and another called RadioPanel. SelectScreen sends a message to RadioPanel telling it what screen its supposed to display the gui on. RadioPanel uses setenv("DISPLAY", myHostslist[hostId].c_str(),true); to…
skalloz
  • 1
  • 1
1 2 3
19
20