]> Dogcows Code - chaz/openbox/blobdiff - plugins/mouse/mouse.c
these havent been used for a long time.. ;) old parsing shit be gone
[chaz/openbox] / plugins / mouse / mouse.c
index 1afc43e65cf2f0f12b1689c5c775056b60d21472..26b23cd8797a534187271c73f81955b27f7747f9 100644 (file)
@@ -13,7 +13,6 @@
 
 static int threshold;
 static int dclicktime;
-gboolean mouse_lefthand;
 /*
 
 <context name="Titlebar"> 
@@ -36,8 +35,6 @@ static void parse_xml(xmlDocPtr doc, xmlNodePtr node, void *d)
         threshold = parse_int(doc, n);
     if ((n = parse_find_node("doubleClickTime", node)))
         dclicktime = parse_int(doc, n);
-    if ((n = parse_find_node("leftHanded", node)))
-        mouse_lefthand = parse_bool(doc, n);
 
     n = parse_find_node("context", node);
     while (n) {
@@ -101,7 +98,6 @@ void plugin_setup_config()
 {
     threshold = 3;
     dclicktime = 200;
-    mouse_lefthand = FALSE;
     parse_register("mouse", parse_xml, NULL);
 }
 
@@ -278,12 +274,10 @@ static void event(ObEvent *e, void *foo)
         context = frame_context(e->data.x.client,
                                 e->data.x.e->xbutton.window);
 
-        if (!button) {
-            px = e->data.x.e->xbutton.x_root;
-            py = e->data.x.e->xbutton.y_root;
-            button = e->data.x.e->xbutton.button;
-            state = e->data.x.e->xbutton.state;
-        }
+        px = e->data.x.e->xbutton.x_root;
+        py = e->data.x.e->xbutton.y_root;
+        button = e->data.x.e->xbutton.button;
+        state = e->data.x.e->xbutton.state;
 
         fire_button(MouseAction_Press, context,
                     e->data.x.client, e->data.x.e->xbutton.state,
This page took 0.025619 seconds and 4 git commands to generate.