summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-26 05:15:40 +0000
committerDana Jansens <danakj@orodu.net>2003-03-26 05:15:40 +0000
commit8470142e00a25553e5a77393b1b4727c0542bc65 (patch)
tree88ed71d29a4f0d240d1af17a5a371dd7dfaa12d1
parent9f064164a4ef720798d6e49a78f1ed92c924a2dd (diff)
only let bind Move and Resize to Drags
-rw-r--r--plugins/mouse/mouserc_parse.l6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/mouse/mouserc_parse.l b/plugins/mouse/mouserc_parse.l
index 1a3233c0..6e577d89 100644
--- a/plugins/mouse/mouserc_parse.l
+++ b/plugins/mouse/mouserc_parse.l
@@ -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,