summaryrefslogtreecommitdiff
path: root/openbox/focus.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-17 06:17:06 +0000
committerDana Jansens <danakj@orodu.net>2003-04-17 06:17:06 +0000
commit25ffe6b566379f25dd3cf7e74aeefd084b7e1b19 (patch)
tree8eccb90b4ea7bb46ee4a0b2f13a7f2f40dd03b00 /openbox/focus.c
parent12d4c8666c9475f254783fd33d1eb2b47f32e030 (diff)
add support for interactive/keyboard move/resize
Diffstat (limited to 'openbox/focus.c')
-rw-r--r--openbox/focus.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/openbox/focus.c b/openbox/focus.c
index e5d3942f..cd08ab68 100644
--- a/openbox/focus.c
+++ b/openbox/focus.c
@@ -106,12 +106,10 @@ void focus_set_client(Client *client)
static gboolean focus_under_pointer()
{
- Window w;
- int i, x, y;
- guint u;
+ int x, y;
GList *it;
- if (XQueryPointer(ob_display, ob_root, &w, &w, &x, &y, &i, &i, &u)) {
+ if (ob_pointer_pos(&x, &y)) {
for (it = stacking_list; it != NULL; it = it->next) {
Client *c = it->data;
if (c->desktop == screen_desktop &&