X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fmouse%2Fmouserc_parse.l;h=c00728c189693f034a08627b5548876ccc6801fb;hb=d7b6c79c412c8067e30451c6e7a8f31266644efa;hp=1a3233c0f92d815a30adaf40db3f38d0d4ef70e8;hpb=9f064164a4ef720798d6e49a78f1ed92c924a2dd;p=chaz%2Fopenbox diff --git a/plugins/mouse/mouserc_parse.l b/plugins/mouse/mouserc_parse.l index 1a3233c0..c00728c1 100644 --- a/plugins/mouse/mouserc_parse.l +++ b/plugins/mouse/mouserc_parse.l @@ -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,