]> git.mdlowis.com Git - projs/tide.git/commitdiff
stub out the 2-1 mouse chord
authorMichael D. Lowis <mike@mdlowis.com>
Sun, 8 Apr 2018 02:12:14 +0000 (22:12 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Sun, 8 Apr 2018 02:12:14 +0000 (22:12 -0400)
lib/x11.c

index ac2cdf572db111e0ee6a1dbcf5edcf3a2562bc9c..3f430fa0481ba44d6fa2f47bc108e60eae31e359 100644 (file)
--- a/lib/x11.c
+++ b/lib/x11.c
@@ -679,13 +679,16 @@ static void mouse_left(WinRegion id, bool pressed, size_t row, size_t col) {
     uint64_t now = getmillis();
     count = ((now-before) <= (uint64_t)ClickTime ? count+1 : 1);
     before = now;
-
-    if (count == 1)
-        view_setcursor(win_view(id), row, col, x11_keymodsset(ModShift));
-    else if (count == 2)
-        view_select(win_view(id), row, col);
-    else if (count == 3)
-        view_selword(win_view(id), row, col);
+    if (win_btnpressed(MouseMiddle)) {
+        puts("exec with arg");
+    } else {
+        if (count == 1)
+            view_setcursor(win_view(id), row, col, x11_keymodsset(ModShift));
+        else if (count == 2)
+            view_select(win_view(id), row, col);
+        else if (count == 3)
+            view_selword(win_view(id), row, col);
+    }
 }
 
 static void mouse_middle(WinRegion id, bool pressed, size_t row, size_t col) {