ref: f75e1bb49e5b3a979d716b05b1d815f8b5a9590c
parent: bb2fdf493de6e427bf88c6f52cc7a20ce331fce1
author: aap <[email protected]>
date: Mon Jan 30 14:38:57 EST 2023
wctl: only move/resize with different rect
--- a/wctl.c
+++ b/wctl.c
@@ -267,12 +267,14 @@
case Move:
if(!goodrect(r))
return Ebadwr;
- wmove(w, r.min);
+ if(!eqpt(r.min, w->img->r.min))
+ wmove(w, r.min);
break;
case Resize:
if(!goodrect(r))
return Ebadwr;
- wresize(w, r);
+ if(!eqrect(r, w->img->r))
+ wresize(w, r);
break;
// TODO: these three work somewhat differently in rio
case Top: