]> git.sur5r.net Git - i3/i3/commitdiff
Fix issue #2184. don't send atom, but raw code 2185/head
authorNick Lanham <nick@afternight.org>
Sun, 31 Jan 2016 20:21:47 +0000 (12:21 -0800)
committerNick Lanham <nick@afternight.org>
Sun, 31 Jan 2016 20:21:47 +0000 (12:21 -0800)
XEMBED messages aren't atoms, but just codes, so i3bar should just send
XEMBED_EMBEDDED_NOTIFY rather than indexing the atom array.

i3bar/src/xcb.c

index 0b9f094bdbe2859026e65271741540abe80d37eb..30111aab5c13e424241eda6082849371e4d3169c 100644 (file)
@@ -824,7 +824,7 @@ static void handle_client_message(xcb_client_message_event_t *event) {
             ev->type = atoms[_XEMBED];
             ev->format = 32;
             ev->data.data32[0] = XCB_CURRENT_TIME;
-            ev->data.data32[1] = atoms[XEMBED_EMBEDDED_NOTIFY];
+            ev->data.data32[1] = XEMBED_EMBEDDED_NOTIFY;
             ev->data.data32[2] = output->bar.id;
             ev->data.data32[3] = xe_version;
             xcb_send_event(xcb_connection,