void xf_SetWindowText(xfContext* xfc, xfAppWindow* appWindow, char* name)
{
- XStoreName(xfc->display, appWindow->handle, name);
const size_t i = strlen(name);
XStoreName(xfc->display, appWindow->handle, name);
/* Move doesn't seem to work until window is mapped. */
xf_MoveWindow(xfc, appWindow, appWindow->x, appWindow->y, appWindow->width, appWindow->height);
+ xf_SetWindowText(xfc, appWindow, appWindow->title);
+
return 1;
}
if (nrects < 1)
return;
+#ifdef WITH_XEXT
xrects = (XRectangle*) calloc(nrects, sizeof(XRectangle));
for (i = 0; i < nrects; i++)
xrects[i].height = rects[i].bottom - rects[i].top;
}
-#ifdef WITH_XEXT
XShapeCombineRectangles(xfc->display, appWindow->handle, ShapeBounding, 0, 0, xrects, nrects, ShapeSet, 0);
+ free(xrects);
#endif
- free(xrects);
}
void xf_SetWindowVisibilityRects(xfContext* xfc, xfAppWindow* appWindow, RECTANGLE_16* rects, int nrects)
if (nrects < 1)
return;
+#ifdef WITH_XEXT
xrects = (XRectangle*) calloc(nrects, sizeof(XRectangle));
for (i = 0; i < nrects; i++)
xrects[i].height = rects[i].bottom - rects[i].top;
}
-#ifdef WITH_XEXT
XShapeCombineRectangles(xfc->display, appWindow->handle, ShapeBounding, 0, 0, xrects, nrects, ShapeSet, 0);
+ free(xrects);
#endif
- free(xrects);
}
void xf_UpdateWindowArea(xfContext* xfc, xfAppWindow* appWindow, int x, int y, int width, int height)