we were broken, but now we're not

This commit is contained in:
vaxerski 2021-12-26 00:07:50 +01:00
parent 034c3cd6f2
commit c8bf538e86

View file

@ -788,7 +788,7 @@ void Events::eventClientMessage(xcb_generic_event_t* event) {
free(XEMBEDREPLY); free(XEMBEDREPLY);
xcb_reparent_window(g_pWindowManager->DisplayConnection, CLIENT, g_pWindowManager->statusBar->trayWindowID, 0, 0); xcb_reparent_window(g_pWindowManager->DisplayConnection, CLIENT, g_pWindowManager->statusBar->getWindowID(), 0, 0);
// icon sizes are barY - 2 - pad: 1 // icon sizes are barY - 2 - pad: 1
values[0] = ConfigManager::getInt("bar:height") - 2 < 1 ? 1 : ConfigManager::getInt("bar:height") - 2; values[0] = ConfigManager::getInt("bar:height") - 2 < 1 ? 1 : ConfigManager::getInt("bar:height") - 2;
@ -806,7 +806,7 @@ void Events::eventClientMessage(xcb_generic_event_t* event) {
event->format = 32; event->format = 32;
event->data.data32[0] = XCB_CURRENT_TIME; event->data.data32[0] = XCB_CURRENT_TIME;
event->data.data32[1] = 0; event->data.data32[1] = 0;
event->data.data32[2] = g_pWindowManager->statusBar->trayWindowID; event->data.data32[2] = g_pWindowManager->statusBar->getWindowID();
event->data.data32[3] = XEMBEDVERSION; event->data.data32[3] = XEMBEDVERSION;
xcb_send_event(g_pWindowManager->DisplayConnection, 0, CLIENT, XCB_EVENT_MASK_NO_EVENT, (char*)event); xcb_send_event(g_pWindowManager->DisplayConnection, 0, CLIENT, XCB_EVENT_MASK_NO_EVENT, (char*)event);