]> Dogcows Code - chaz/openbox/commitdiff
only let bind Move and Resize to Drags
authorDana Jansens <danakj@orodu.net>
Wed, 26 Mar 2003 05:15:40 +0000 (05:15 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 26 Mar 2003 05:15:40 +0000 (05:15 +0000)
plugins/mouse/mouserc_parse.l

index 1a3233c0f92d815a30adaf40db3f38d0d4ef70e8..6e577d89137ea42456a5888a2689955139613ab6 100644 (file)
@@ -180,9 +180,11 @@ static void addbinding()
     } else if (!g_ascii_strcasecmp(action, "previousdesktoprowwrap")) {
         a = action_new(action_previous_desktop_row);
         a->data.nextprevdesktop.wrap = TRUE;
-    } else if (!g_ascii_strcasecmp(action, "move")) {
+    } else if (!g_ascii_strcasecmp(action, "move") &&
+               mact == MouseAction_Motion) {
         a = action_new(action_move);
-    } else if (!g_ascii_strcasecmp(action, "resize")) {
+    } else if (!g_ascii_strcasecmp(action, "resize") &&
+               mact == MouseAction_Motion) {
         a = action_new(action_resize);
     } else {
         g_warning("Invalid action '%s' in '%s' on line %d", action, path,
This page took 0.028745 seconds and 4 git commands to generate.