summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 4b25a035..58c5b2e5 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -807,3 +807,13 @@ static void sn_event_func(SnMonitorEvent *ev, void *data)
set_root_cursor();
}
#endif
+
+gboolean screen_pointer_pos(int *x, int *y)
+{
+ Window w;
+ int i;
+ guint u;
+
+ return !!XQueryPointer(ob_display, RootWindow(ob_display, ob_screen),
+ &w, &w, x, y, &i, &i, &u);
+}