Add a function for sending XEMBED messages

This commit is contained in:
Robbert van der Helm
2020-03-21 16:32:39 +01:00
parent 50f26d1238
commit 2e44de6f49
3 changed files with 34 additions and 1 deletions
+12
View File
@@ -70,6 +70,17 @@ class Editor {
*/
std::optional<size_t> get_x11_handle();
/**
* Send an XEmbed message to a window. See the spec for more information.
*
* https://specifications.freedesktop.org/xembed-spec/xembed-spec-latest.html#lifecycle
*/
void send_xembed_event(const xcb_window_t& window,
const uint32_t message,
const uint32_t detail,
const uint32_t data1,
const uint32_t data2);
/**
* The Win32 window class registered for the window window.
*/
@@ -84,5 +95,6 @@ class Editor {
win32_handle;
std::unique_ptr<xcb_connection_t, decltype(&xcb_disconnect)> x11_connection;
xcb_atom_t xcb_xembed;
xcb_atom_t xcb_xembed_info;
};