X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fopenbox.c;h=eeb7e0fb26a7a7111b1b02c3a84da0de78694f43;hb=de70d9ffc519d1b255246483c28f2a08bf6354bb;hp=980aceb4c863a44f86bb5a8db9b70b97f225ede9;hpb=11b79778ad3c6d1cf0e98f0aa13a91ecaa5448f5;p=chaz%2Fopenbox diff --git a/openbox/openbox.c b/openbox/openbox.c index 980aceb4..eeb7e0fb 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; + guint u; + + return !!XQueryPointer(ob_display, ob_root, &w, &w, x, y, &i, &i, &u); +}