1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

Fix compilation with --disable-own-window (sf.net #2820716)

This commit is contained in:
Cesare Tirabassi 2009-07-13 23:19:32 +02:00
parent a975f9e364
commit 602edfea15
2 changed files with 6 additions and 1 deletions

View File

@ -8012,9 +8012,12 @@ static void load_config_file(const char *f)
}
}
CONF("alignment") {
#ifdef OWN_WINDOW
if (window.type == TYPE_DOCK)
;
else if (value) {
else
#endif /*OWN_WINDOW */
if (value) {
int a = string_to_alignment(value);
if (a <= 0) {

View File

@ -626,6 +626,7 @@ void update_x11info(void)
}
#ifdef OWN_WINDOW
/* reserve window manager space */
void set_struts(int sidenum)
{
@ -698,3 +699,4 @@ void set_struts(int sidenum)
}
}
}
#endif /* OWN_WINDOW */