class_hints = XAllocClassHint();
- if (class_hints != NULL)
+ if (class_hints)
{
char* class = NULL;
if (xfi->instance->settings->WmClass != NULL)
+ {
class_hints->res_class = xfi->instance->settings->WmClass;
- else {
+ }
+ else
+ {
class = malloc(sizeof(rail_window_class));
snprintf(class, sizeof(rail_window_class), "RAIL:%08X", id);
class_hints->res_class = class;
if (window->rail_state == WINDOW_SHOW_MAXIMIZED)
window->rail_ignore_configure = TRUE;
-
if (window->is_transient)
- {
xf_SetWindowUnlisted(xfi, window);
- }
+
break;
}
long* dstp;
UINT32* srcp;
- if (icon->big != TRUE)
+ if (!icon->big)
return;
pixels = icon->entry->width * icon->entry->height;
#ifdef WITH_XEXT
/*
* This is currently unsupported with the new logic to handle window placement with VisibleOffset variables
- * XShapeCombineRectangles(xfi->display, window->handle, ShapeBounding, 0, 0, xrects, nrects, ShapeSet, 0);
+ *
+ * Marc: enabling it works, and is required for round corners.
*/
+ XShapeCombineRectangles(xfi->display, window->handle, ShapeBounding, 0, 0, xrects, nrects, ShapeSet, 0);
#endif
free(xrects);
#ifdef WITH_XEXT
/*
* This is currently unsupported with the new logic to handle window placement with VisibleOffset variables
- * XShapeCombineRectangles(xfi->display, window->handle, ShapeBounding, 0, 0, xrects, nrects, ShapeSet, 0);
+ *
+ * Marc: enabling it works, and is required for round corners.
*/
+ XShapeCombineRectangles(xfi->display, window->handle, ShapeBounding, 0, 0, xrects, nrects, ShapeSet, 0);
#endif
free(xrects);