mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 21:50:11 +02:00
Add a function for fetching X11 atoms by name
This commit is contained in:
@@ -44,6 +44,16 @@
|
||||
*/
|
||||
constexpr int max_win32_messages [[maybe_unused]] = 20;
|
||||
|
||||
/**
|
||||
* Get the atom with the specified name. May throw when
|
||||
* `xcb_intern_atom_reply()` returns an error. Returns `XCB_ATOM_NONE` when the
|
||||
* atom doesn't exist. We define this here because we'll also need to fetch a
|
||||
* whole bunch of atoms for the We define this here because we'll also need to
|
||||
* fetch a whole bunch of atoms for the XDND protocol in `xdnd-proxy.cpp`.
|
||||
*/
|
||||
xcb_atom_t get_atom_by_name(xcb_connection_t& x11_connection,
|
||||
const char* atom_name);
|
||||
|
||||
/**
|
||||
* Used to store the maximum width and height of a screen.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user