ref: bb2fdf493de6e427bf88c6f52cc7a20ce331fce1
parent: 769b10f0ceafba306a3b53bee27f633e67ab11d3
author: aap <aap@papnet.eu>
date: Mon Jan 30 14:26:37 EST 2023
only sweep good rects
--- a/main.c
+++ b/main.c
@@ -329,7 +329,7 @@
sweep(Window *w)
{
Rectangle r = sweeprect(3, mctl);
- if(Dx(r) > 10 && Dy(r) > 10){
+ if(goodrect(r)){
if(w){
wresize(w, r);
wraise(w);
@@ -575,7 +575,6 @@
w = wpointto(mctl->xy);
cursorwin = w;
again:
-
if(w == nil){
setcursornormal(nil);
if(mctl->buttons & 4)