/* Copyright ©2007-2010 Kris Maglione * See LICENSE file for license details. */ #include "dat.h" #include #include #include "fns.h" enum { Left, Right, Top, Bottom, LeftMin, LeftMax, RightMin, RightMax, TopMin, TopMax, BottomMin, BottomMax, Last }; void ewmh_setstrut(Window *w, Rectangle struts[4]) { long strut[Last]; int i; strut[LeftMin] = struts[Left].min.y; strut[Left] = struts[Left].max.x; strut[LeftMax] = struts[Left].max.y; strut[RightMin] = struts[Right].min.y; strut[Right] = -struts[Right].min.x; strut[RightMax] = struts[Right].max.y; strut[TopMin] = struts[Top].min.x; strut[Top] = struts[Top].max.y; strut[TopMax] = struts[Top].max.x; strut[BottomMin] = struts[Bottom].min.x; strut[Bottom] = -struts[Bottom].min.y; strut[BottomMax] = struts[Bottom].max.x; for(i=0; i