]> Dogcows Code - chaz/openbox/blobdiff - plugins/mouse/mouserc_parse.l
dont print bad window errors
[chaz/openbox] / plugins / mouse / mouserc_parse.l
index 1a3233c0f92d815a30adaf40db3f38d0d4ef70e8..c00728c189693f034a08627b5548876ccc6801fb 100644 (file)
@@ -21,7 +21,7 @@ static void gotfield();
 static void addbinding();
 %}
 
-field [-A-Za-z0-9]+
+field [A-Za-z0-9][-A-Za-z0-9]*[^-]
 sep [ \t]+
 white [ \t]*
 
@@ -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.020305 seconds and 4 git commands to generate.