mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-20 03:51:18 +00:00
Clean up x11.c a bit.
This commit is contained in:
parent
57f65ec30c
commit
87dfc68374
15
src/x11.c
15
src/x11.c
@ -415,7 +415,7 @@ void init_window(int own_window, int w, int h, int set_trans, int back_colour,
|
||||
PropModeAppend, (unsigned char *) &xa_prop, 1);
|
||||
}
|
||||
}
|
||||
} /* else { window.type != TYPE_OVERRIDE */
|
||||
}
|
||||
|
||||
fprintf(stderr, PACKAGE_NAME": drawing to created window (0x%lx)\n",
|
||||
window.window);
|
||||
@ -423,9 +423,8 @@ void init_window(int own_window, int w, int h, int set_trans, int back_colour,
|
||||
|
||||
XMapWindow(display, window.window);
|
||||
|
||||
} else /* if (own_window) { */
|
||||
#endif
|
||||
/* root / desktop window */
|
||||
} else
|
||||
#endif /* OWN_WINDOW */
|
||||
{
|
||||
XWindowAttributes attrs;
|
||||
|
||||
@ -725,30 +724,22 @@ void set_struts(int sidenum)
|
||||
/* define strut depth */
|
||||
switch (sidenum) {
|
||||
case 0:
|
||||
{
|
||||
/* left side */
|
||||
sizes[0] = window.x + window.width;
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
/* right side */
|
||||
sizes[1] = display_width - window.x;
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
/* top side */
|
||||
sizes[2] = window.y + window.height;
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
{
|
||||
/* bottom side */
|
||||
sizes[3] = display_height - window.y;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* define partial strut length */
|
||||
if (sidenum <= 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user