]> Dogcows Code - chaz/openbox/blobdiff - openbox/openbox.c
add the left/right/top/bottom direction arrows and use them for resizing those ways
[chaz/openbox] / openbox / openbox.c
index 980aceb4c863a44f86bb5a8db9b70b97f225ede9..9dd50985daa0b138d4fcc027992ffc262e871b3c 100644 (file)
@@ -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"
@@ -150,6 +151,10 @@ int main(int argc, char **argv)
     ob_cursors.tr = XCreateFontCursor(ob_display, XC_top_right_corner);
     ob_cursors.bl = XCreateFontCursor(ob_display, XC_bottom_left_corner);
     ob_cursors.br = XCreateFontCursor(ob_display, XC_bottom_right_corner);
+    ob_cursors.t = XCreateFontCursor(ob_display, XC_top_side);
+    ob_cursors.r = XCreateFontCursor(ob_display, XC_right_side);
+    ob_cursors.b = XCreateFontCursor(ob_display, XC_bottom_side);
+    ob_cursors.l = XCreateFontCursor(ob_display, XC_left_side);
 
     prop_startup(); /* get atoms values for the display */
     extensions_query_all(); /* find which extensions are present */
@@ -165,6 +170,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 +328,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);
+}
This page took 0.02473 seconds and 4 git commands to generate.