From be3a6193b8d21b484fab5fda08ba474915bf3758 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Fri, 9 Oct 2015 22:40:06 -0400 Subject: [PATCH] make it so I can still select despite MODE_MOUSE --- st.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/st.c b/st.c index 4a505b5..0632637 100644 --- a/st.c +++ b/st.c @@ -889,10 +889,10 @@ bpress(XEvent *e) { struct timespec now; Mousekey *mk; - if(IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) { - mousereport(e); - return; - } + // Jasonif(IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) { + // Jason mousereport(e); + // Jason return; + // Jason} for(mk = mshortcuts; mk < mshortcuts + LEN(mshortcuts); mk++) { if(e->xbutton.button == mk->b @@ -1141,10 +1141,10 @@ xsetsel(char *str) { void brelease(XEvent *e) { - if(IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) { - mousereport(e); - return; - } + //Jasonif(IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) { + //Jason mousereport(e); + //Jason return; + //Jason} if(e->xbutton.button == Button2) { selpaste(NULL); @@ -1164,10 +1164,10 @@ void bmotion(XEvent *e) { int oldey, oldex, oldsby, oldsey; - if(IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) { - mousereport(e); - return; - } + //Jasonif(IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) { + //Jason mousereport(e); + //Jason return; + //Jason} if(!sel.mode) return; -- 1.7.10.4