From 25ffe6b566379f25dd3cf7e74aeefd084b7e1b19 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 17 Apr 2003 06:17:06 +0000 Subject: add support for interactive/keyboard move/resize --- openbox/openbox.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'openbox/openbox.c') diff --git a/openbox/openbox.c b/openbox/openbox.c index 980aceb4..3c2dfc28 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -7,6 +7,7 @@ #include "prop.h" #include "screen.h" #include "focus.h" +#include "moveresize.h" #include "frame.h" #include "extensions.h" #include "parse.h" @@ -165,6 +166,7 @@ int main(int argc, char **argv) font_startup(); theme_startup(); event_startup(); + moveresize_startup(); grab_startup(); plugin_startup(); /* load the plugins specified in the pluginrc */ @@ -322,3 +324,12 @@ void parse_args(int argc, char **argv) } } } + +gboolean ob_pointer_pos(int *x, int *y) +{ + Window w; + int i, x, y; + guint u; + + return !!XQueryPointer(ob_display, ob_root, &w, &w, x, y, &i, &i, &u); +} -- cgit v1.2.3