mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Only query XEmbed properties when using Xembed
This is mostly just to make this long constructor more readable.
This commit is contained in:
@@ -280,15 +280,17 @@ Editor::Editor(MainContext& main_context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// When using XEmbed we'll need the atoms for the corresponding properties
|
// When using XEmbed we'll need the atoms for the corresponding properties
|
||||||
atom_cookie =
|
if (use_xembed) {
|
||||||
xcb_intern_atom(x11_connection.get(), true, strlen(xembed_message_name),
|
atom_cookie =
|
||||||
xembed_message_name);
|
xcb_intern_atom(x11_connection.get(), true,
|
||||||
atom_reply =
|
strlen(xembed_message_name), xembed_message_name);
|
||||||
xcb_intern_atom_reply(x11_connection.get(), atom_cookie, &error);
|
atom_reply =
|
||||||
THROW_X11_ERROR(error);
|
xcb_intern_atom_reply(x11_connection.get(), atom_cookie, &error);
|
||||||
|
THROW_X11_ERROR(error);
|
||||||
|
|
||||||
xcb_xembed_message = atom_reply->atom;
|
xcb_xembed_message = atom_reply->atom;
|
||||||
free(atom_reply);
|
free(atom_reply);
|
||||||
|
}
|
||||||
|
|
||||||
// When not using XEmbed, Wine will interpret any local coordinates as
|
// When not using XEmbed, Wine will interpret any local coordinates as
|
||||||
// global coordinates. To work around this we'll tell the Wine window it's
|
// global coordinates. To work around this we'll tell the Wine window it's
|
||||||
|
|||||||
Reference in New Issue
Block a user