rendered paste body/* * groupDisableTabBarInput * */static voidgroupDisableTabBarInput(GroupSelection *group){ if (group->topTab < 0) return; GROUP_DISPLAY(TOP_TAB(group)->screen->display); Display *display = TOP_TAB(group)->screen->display->display; if (!gd->inputPrevention) { XSetWindowAttributes attrib; attrib.override_redirect = TRUE; gd->inputPrevention = XCreateWindow(display, TOP_TAB(group)->screen->root, 0, 0, 0, 0, 0, CopyFromParent, InputOnly, CopyFromParent, CWOverrideRedirect, &attrib); } XWindowChanges xwc; xwc.x = group->tabBar->region.extents.x1; xwc.y = group->tabBar->region.extents.y1; xwc.width = group->tabBar->region.extents.x2 - group->tabBar->region.extents.x1; xwc.height = group->tabBar->region.extents.y2 - group->tabBar->region.extents.y1; XConfigureWindow(display, gd->inputPrevention, CWX | CWY | CWWidth | CWHeight, &xwc); XMapWindow(display, gd->inputPrevention);}/* * groupEnableTabBarInput * */static voidgroupEnableTabBarInput(GroupSelection *group){ if (group->topTab < 0) return; GROUP_DISPLAY(TOP_TAB(group)->screen->display); if (gd->inputPrevention) { XUnmapWindow(TOP_TAB(group)->screen->display->display, gd->inputPrevention); }}