summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-08-31 02:40:43 +0000
committersabetts <sabetts>2000-08-31 02:40:43 +0000
commit80d7ae36215ca93f4b82c8fb87d1017b9f3bdc90 (patch)
treee3175df9c59e0440751d7a5dcba5e5aff870408d
parentb86e0c298d6881fe1a79ab4bb592aefb47147817 (diff)
downloadratpoison-80d7ae36215ca93f4b82c8fb87d1017b9f3bdc90.zip
made bar_x and bar_y global so I could use them in input.c.
-rw-r--r--bar.c4
-rw-r--r--bar.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/bar.c b/bar.c
index d6e6908..d06dcc8 100644
--- a/bar.c
+++ b/bar.c
@@ -84,14 +84,14 @@ calc_bar_width (XFontStruct *font)
return size;
}
-static int
+int
bar_x (screen_info *s, int width)
{
if (BAR_LOCATION >= 2) return s->root_attr.width - width;
else return 0;
}
-static int
+int
bar_y (screen_info *s)
{
if (BAR_LOCATION % 2) return 0;
diff --git a/bar.h b/bar.h
index e6e0acd..6083762 100644
--- a/bar.h
+++ b/bar.h
@@ -24,4 +24,6 @@ void update_window_names (screen_info *s);
void toggle_bar (screen_info *s);
int show_bar (screen_info *s);
int hide_bar (screen_info *s);
+int bar_y (screen_info *s);
+int bar_x (screen_info *s, int width);
#endif _BAR_H