diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-17 06:17:06 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-17 06:17:06 +0000 |
| commit | 25ffe6b566379f25dd3cf7e74aeefd084b7e1b19 (patch) | |
| tree | 8eccb90b4ea7bb46ee4a0b2f13a7f2f40dd03b00 /openbox/openbox.c | |
| parent | 12d4c8666c9475f254783fd33d1eb2b47f32e030 (diff) | |
add support for interactive/keyboard move/resize
Diffstat (limited to 'openbox/openbox.c')
| -rw-r--r-- | openbox/openbox.c | 11 |
1 files changed, 11 insertions, 0 deletions
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); +} |
