summaryrefslogtreecommitdiff
path: root/obt
diff options
context:
space:
mode:
Diffstat (limited to 'obt')
-rw-r--r--obt/display.h2
-rw-r--r--obt/prop.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/obt/display.h b/obt/display.h
index 5626f268..8c074b5b 100644
--- a/obt/display.h
+++ b/obt/display.h
@@ -61,6 +61,8 @@ void obt_display_close();
void obt_display_ignore_errors(gboolean ignore);
+#define obt_root(screen) (RootWindow(obt_display, screen))
+
G_END_DECLS
#endif /*__obt_display_h*/
diff --git a/obt/prop.c b/obt/prop.c
index 7beb9a91..e07b10d3 100644
--- a/obt/prop.c
+++ b/obt/prop.c
@@ -468,7 +468,7 @@ void obt_prop_message(gint screen, Window about, Atom messagetype,
glong data0, glong data1, glong data2, glong data3,
glong data4, glong mask)
{
- obt_prop_message_to(RootWindow(obt_display, screen), about, messagetype,
+ obt_prop_message_to(obt_root(screen), about, messagetype,
data0, data1, data2, data3, data4, mask);
}