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
0 answers

Qt5 Linux - intercept maximize and span application across two screens?

I have a strange requirement to have a Qt application maximize itself across two screens of a dual-monitor setup. I understand I will need to do some special magic to make this happen, since it is not the standard behaviour. I have a…
George
  • 173
  • 1
  • 1
  • 4
0
votes
1 answer

XCB File Watching?

I starting work on a file watching mechanism. On *nix systems it is looking to me kqueue, libnotify, and GioFileWatcher are my only solutions - https://developer.gnome.org/gio/stable/GFileMonitor.html It is a big task so I wanted to verify before I…
Noitidart
  • 35,443
  • 37
  • 154
  • 323
0
votes
1 answer

Get Window ID from xcb using a class or name

I want to use Qt's QWindow::fromWinID function to draw widgets onto an external window (hopefully this will work). Unfortunately, I need to draw on a window which has a certain name/class (I can show it using xwininfo and xprop). The only code I can…
rubenvb
  • 74,642
  • 33
  • 187
  • 332
0
votes
1 answer

reply_t vs request_t - passing them in interchangeably?

I'm having an issue with XCB. I don't understand the difference between *_reply_t vs *_request_t types. It seems that the *_reply_t is passed in place of the *_response_t, however the structures are very different. For…
Noitidart
  • 35,443
  • 37
  • 154
  • 323
0
votes
1 answer

Windows covering all screens - even struts - full screen failing

I have created two monitors. I created two windows. I moved them to the different monitors and made them full screen. Now while the window has focus, all the reserved "struts" (i think they are called) are covered. However when the window does not…
Noitidart
  • 35,443
  • 37
  • 154
  • 323
0
votes
0 answers

Accessing remote clipboard buffers

Is anyone familiar with the correct method to access clipboard buffers on client machines by remote machines that are forwarding X Windows to the client machines? I am in the situation where I have developed code using XCB that is running remotely…
user3831357
  • 149
  • 1
  • 7
0
votes
1 answer

Missing library starting up QT5

I have a Qt application that I am trying to run, but fails to start because it "could not find or load the Qt platform plugin "xcb". When I run ldd on libqxcb.so all the libraries are linked except for one: libxcb-icccm.so.1 => not found Now, I do…
0
votes
0 answers

xcb - cannot find xcb_map_window in sources

I just went on the xcb download page and downloaded the different archives (the most recent ones) but had no luck finding the implementation of xcb_map_window with grep. I've merely found its prototype though. Since it has the xcb prefix, I thought…
Kroma
  • 1,109
  • 9
  • 18
0
votes
1 answer

Strange behaviour of Qt application on raspberry pi

I have cross compiled Qt for the Raspberry pi with QtMultimedia and Gstreamer1.0 support with platform xcb and eglfs Now if I run an app to play a video using platform eglfs it runs and video plays and if I use platform xcb for app it gives an…
haresh
  • 63
  • 10
0
votes
1 answer

X11 intervene while moving and resizing windows

How can I intervene programmatically while moving and resizing windows? (XCB solution preferred) Eg. I want to implement magnetic windows a la winamp. Thanks.
user519179
0
votes
1 answer

Change mouse cursor to standard hand cursor in XCB

Using XCB, I need to change the mouse pointer for a window to the standard hand cursor (whatever that means in Linux, I need a toolkit-independent solution). Note: loading the "cursor" font and changing the window attribute XCB_CW_CURSOR to XC_hand2…
user519179
0
votes
1 answer

Need Qt QPA and X11 clarification

I tried to understand Qts platform handling for hours now, but I dont get it. For my hotkey handling I currently use a mixture of X11extras for getting display, xlib for key conversions and xcb for the Qt native event handling. Three libs to link.…
ManuelSchneid3r
  • 15,850
  • 12
  • 65
  • 103
0
votes
2 answers

Latest xcb-proto and libxcb version on RHEL 7.0

what is the latest version of xcb-proto and libxcb on RHEL 7.0? Till now we have explored that xcb-proto's latest version is 1.8 and libxcb's is 1.9. But we are still getting the following error in a multi-threaded program: java: xcb_conn.c:186:…
Indra Chatterjee
  • 101
  • 1
  • 2
  • 10
0
votes
1 answer

QDBusConnection error while building qt5 xcb plugin

I've been searching for a while here, but I assume I could've missed the answer, in this case please accept my apologies. [Preconditions] I built Qt 5.3.1 from source, but missed the fact ./configure script hadn't included xcb plugin. Of course I…
0
votes
1 answer

When using XCB, is it OK to open and close DISPLAY frenquently?

Due to XIM and XFT usage, I have to use XDisplay sometimes in my XCB based code. My question, should I open display at the beginning of my program, and close it at end. Or open and close every time I need to use it?
Magicloud
  • 818
  • 1
  • 7
  • 17
1 2 3
19
20