diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-07-10 19:07:58 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-07-10 19:07:58 +0000 |
| commit | 1ffc7fa9ec0ca76f8ffc23bba2c1f2d417732462 (patch) | |
| tree | cc8fb9a5b8b8c16122136f5a6dfb2d23d9d318e2 /openbox/screen.c | |
| parent | bddbe9432837edccc67b76f2d29d4dbc9b02203f (diff) | |
move ob_pointer_pos to screen_pointer_pos
Diffstat (limited to 'openbox/screen.c')
| -rw-r--r-- | openbox/screen.c | 10 |
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); +} |
