27 printf(
"addWindowBox : name = %s, geometry = %s\n",
boxname, geometry);
34 if(!
Scr->FirstWindowBox) {
37 return (&(
winbox->winlist));
68 printf(
"createWindowBoxes : name = %s, win = 0x%x, x = %d, y = %d, w = %d, h = %d\n",
93 winbox->twmwin->iswinbox =
true;
104 if(!
Scr->FirstWindowBox) {
131 if(
x > attr.width - 1) {
132 *
nx = attr.width - 1;
134 if(
y > attr.height - 1) {
135 *
ny = attr.height - 1;
147 for(
t =
Scr->FirstWindow;
t !=
NULL;
t =
t->next) {
148 if(
t->winbox && (
t->winbox->twmwin ==
twmwin)) {
149 if(
t->frame_x <
minx) {
152 if(
t->frame_y <
miny) {
155 w =
t->frame_width + 2 *
t->frame_bw;
156 h =
t->frame_height + 2 *
t->frame_bw;
157 if(
t->frame_x + w >
maxx) {
158 maxx =
t->frame_x + w;
160 if(
t->frame_y + h >
maxy) {
161 maxy =
t->frame_y + h;
170 for(
t =
Scr->FirstWindow;
t !=
NULL;
t =
t->next) {
171 if(
t->winbox && (
t->winbox->twmwin ==
twmwin)) {
173 t->frame_width,
t->frame_height, -1);
TwmWindow * AddWindow(Window w, AWType wtype, IconMgr *iconp, VirtualScreen *vs)
int frame_x
X position on screen of frame.
void * LookInList(name_list *list_head, const char *name, XClassHint *class)
Info and control for every X Window we take over.
struct WindowBox WindowBox
void SetupWindow(TwmWindow *tmp_win, int x, int y, int w, int h, int bw)
bool visible(const TwmWindow *tmp_win)
void createWindowBoxes(void)
WindowBox * findWindowBox(TwmWindow *twmwin)
void fittocontent(TwmWindow *twmwin)
name_list ** addWindowBox(char *boxname, char *geometry)
void ConstrainedToWinBox(TwmWindow *twmwin, int x, int y, int *nx, int *ny)
int RLayoutXParseGeometry(RLayout *layout, const char *geometry, int *x, int *y, unsigned int *width, unsigned int *height)
Parse an X Geometry out to get the positions and sizes.