Commit Diff
- Commit:
8e15887de95a7076b9515dcbb428b364f6dc3849- From:
- v4hn <me@v4hn.de>
- Via:
- Roberto E. Vargas Caballero <k0ga@shike2.com>
- Date:
- Message:
- set selection to IDLE on clear Otherwise a tangling bmotion event will consider the selection still valid and selnormalize segfaults because of an invalid sel.ob.y index.
- Actions:
- Patch | Tree
--- st.c +++ st.c @@ -1069,6 +1069,7 @@ void selclear(XEvent *e) { if(sel.ob.x == -1) return; + sel.mode = SEL_IDLE; sel.ob.x = -1; tsetdirt(sel.nb.y, sel.ne.y); }
