From: Michael D. Lowis Date: Sun, 8 Apr 2018 02:12:14 +0000 (-0400) Subject: stub out the 2-1 mouse chord X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=faa18e4dbdb9995f7e346fd115ae71b6bfed36a5;p=projs%2Ftide.git stub out the 2-1 mouse chord --- diff --git a/lib/x11.c b/lib/x11.c index ac2cdf5..3f430fa 100644 --- 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) {