From 02bab89c905c3911cfc71f5464cb38783bb75b7c Mon Sep 17 00:00:00 2001 From: Linux User Date: Sat, 1 Oct 2022 06:16:29 +0000 Subject: [PATCH] remove not working patch --- dwm | Bin 76528 -> 76528 bytes dwm.c | 27 +++++---------------------- dwm.o | Bin 68208 -> 67880 bytes 3 files changed, 5 insertions(+), 22 deletions(-) diff --git a/dwm b/dwm index 60b84a928a6182c17bd51c47960691c2a15db430..409b36c4739f98966840d4bffc316d64de811e06 100755 GIT binary patch delta 1866 zcmZ`)3v3g07{B|s9bMP;Dpb}@9tCfPfebnxTY=$fx^e5uR_dla3T`lQPSIgH9dV(M zw$t+{5RW(lq6_k}6EsXD<^6)2XrQ;Zad7<nHMPJ4sSDtip!4EWAY?s;=u0!a@9C1N$Gcx6f!%CV_L5_5>L>r5&nNnAI zb_~)?71NeaMQ5f+<;&$^NH$7^YtL!XL#;Gn^EH)MhN?LsvnrpWN;yH9Jch`;pY4RZ zIqVQ#t(YCS!uWqj6lL`tWIZ(COrQ%y`HSx{<^pt>d4k@O@gI%KoBs>ukjs&TklD!*0g&@9GQy|O)J|;;7KkFcI%qOzVVRLsb#9I&Y z9PA|Ljq+uze0?z<(~W!xsNVAiaIXN7YHJg)Oc95V!GhK)XE z>8O5J;mophcq>SEiXlE#`3e{4tsG5gB8{*Dfuu3~4F`Wc+7vmd1>>%z{7vgP?}i9( zeEYplhHLTlnY;-$zQsB&O7Y+DN{boWcpIyguU^NP98n8Z=Rnnh)4>V;_DHq9DmCSK z|F24zKotg#`HQ}4)~I3vo<|rDP}SdG?}>p1LyPnf&Na~9|LbcU85kk+N*=HSb7St6 zS8O4Ofd%w5piO!pL2d=JK)CX{6=)~ZLc)>>A#_A(IY?;XDEZWWaJQ(cNkIOvClP4k z_@nal2N;{7_~A=HAsf0$j_6vHa^s?V;!(+uwgSGoRi?xR+ee{cdE(0L6H&oAv3~nd zuLd0dwFP_Zk8i;-kYHA`Hba#DB{0Gga6u1i;DXhxUM_1T=V1Iaz~*jP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Ioh3GaUSwTP@ha)y2WTZwk%!m1Cjp&lH zK05@~$RGLE=P2#&$>eA)l|?56l7~jhIu&*0ax<_(J_qTRSi9jE9DsHyD`q6rABlm3 zSdW{dbpvtrXY~p(ZZWVo6q8sC3ggdWgdo9dz&|B2t975Ngc!M7yd{1a$a^5+| z+LvHz3Oty1F7zU;_tJpZCw!Q9uI@Qg;9<6%BXYKDIGGGkm!1`sX* z!ZaWg+Hjh4B;nd*6nym-fk=t+M;H=paYUSd8GXV-r?e$%s{cYyie%#Fgb+LVPi1i| z!b_E%7^wAGiTWyolIbggHtPrw<))_(iYe($C>NUF1t{+pPala^ie7!$Rs-(fuyUcr z3C#2lz%&wDp-VJsG$jSuMpy8LErpKY#i4gJ!_GWQt+DfHFdYI$l;ir8-x>2TqKsMu z3%c_vcb~W%YRLG+Z4tESzr6+cs`g|-o!fXP9$uur(3tHj?&Q&WmwWe|@llN*7l6oF z!BZj^|1>__2=5gRTof!DWF3VWhGt*;jLjQ{(6*Zp>@c04)Nv0MGzz$BMf5q-!u7SqcA6IJV}zdi|pX7Vl6< zl3H?V^_X^eEBk`6UNAtC-5CZ4U7*wj(=J#Wdr|8<^;qiL%g&kj*Yo)ccUbw?^R=$$ zY?k8PV6<`hIAORt>e^iv*_e9n5z^H4*sN7wo6onX@Ap<>dAFASBg1?;;^)!-w;ZHZ z|Lh%vAsCz4Snj)xwU~sArd1|kDc{j_(;^%f@FTmL4kZbt0-m(HDK$knJ`!(Pyzz`E cOc-p?044);?h%G=bY}{Cg?Q5^nZjtx-x1L5DF6Tf diff --git a/dwm.c b/dwm.c index 7bdfb63..8eb2054 100644 --- a/dwm.c +++ b/dwm.c @@ -1563,14 +1563,9 @@ void resizemouse(const Arg *arg) { int ocx, ocy, nw, nh; - int ocx2, ocy2, nx, ny; Client *c; Monitor *m; XEvent ev; - int horizcorner, vertcorner; - int di; - unsigned int dui; - Window dummy; Time lasttime = 0; if (!(c = selmon->sel)) @@ -1580,18 +1575,10 @@ resizemouse(const Arg *arg) restack(selmon); ocx = c->x; ocy = c->y; - ocx2 = c->x + c->w; - ocy2 = c->y + c->h; if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, None, cursor[CurResize]->cursor, CurrentTime) != GrabSuccess) return; - if (!XQueryPointer (dpy, c->win, &dummy, &dummy, &di, &di, &nx, &ny, &dui)) - return; - horizcorner = nx < c->w / 2; - vertcorner = ny < c->h / 2; - XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, - horizcorner ? (-c->bw) : (c->w + c->bw - 1), - vertcorner ? (-c->bw) : (c->h + c->bw - 1)); + XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1); do { XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev); switch(ev.type) { @@ -1605,10 +1592,8 @@ resizemouse(const Arg *arg) continue; lasttime = ev.xmotion.time; - nx = horizcorner ? ev.xmotion.x : c->x; - ny = vertcorner ? ev.xmotion.y : c->y; - nw = MAX(horizcorner ? (ocx2 - nx) : (ev.xmotion.x - ocx - 2 * c->bw + 1), 1); - nh = MAX(vertcorner ? (ocy2 - ny) : (ev.xmotion.y - ocy - 2 * c->bw + 1), 1); + nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1); + nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1); if (c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww && c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <= selmon->wy + selmon->wh) @@ -1618,13 +1603,11 @@ resizemouse(const Arg *arg) togglefloating(NULL); } if (!selmon->lt[selmon->sellt]->arrange || c->isfloating) - resize(c, nx, ny, nw, nh, 1); + resize(c, c->x, c->y, nw, nh, 1); break; } } while (ev.type != ButtonRelease); - XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, - horizcorner ? (-c->bw) : (c->w + c->bw - 1), - vertcorner ? (-c->bw) : (c->h + c->bw - 1)); + XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1); XUngrabPointer(dpy, CurrentTime); while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); if ((m = recttomon(c->x, c->y, c->w, c->h)) != selmon) { diff --git a/dwm.o b/dwm.o index 96a9558768fca30a0baa01a7ac4981f17d700e44..07ded2d61ec5720080cc5b033666b43888b2d1a9 100644 GIT binary patch delta 1931 zcmaJ=Z%i9y7=Q0dp>42-Nwt(^8opu;hZxMjgmz-6cjt7LjU&;6N&q`t|U_nzPL zd;Yw?=e^azg5mcHPF2#KmM?d1-7kOY-?k?tz1Y>5SYUeAX+rq;IW|HOLYTw~n3>Oh zR#ic=0zkO$>!lIa2F`kElr4s{MZV*IB=$arNj+=`J=}CXm*Q>)fN=`!W^Ovv|2RhT z(je;sM36L-npD#Vc}ovlf|&RRx2Ap_K0-1`72;FnLcfnKHMkR@H%ovsDToEEPIwNS z@oaIVEar&EvW1cIr6x!d&$=S^c-GA%>a;?8SzdKrTH2)Z$!qqaJn^e`67sO@$p+QYHapv|_Mu<(uv*j_jPn<*?CDw6- z->BhKpXg(YGrumXDqgYJXj=-01gU36>o$JOMj~(D?Sx4jQ(@@he7u`2wK9pwKdNd< zWz2WloG(l$2Cb2U=6L^iuKMV4yxf{TNXf;TLoUH9Vy;9gy2yjJlk_s=tCPDpt%;t|Aan6mvZJ>|n%%Ey-PrreV34wme6 z;%KX#=p>}oB2RR>5Ae>a-a_749WU}bhiLkcbC_;&egXR|9dM>#57F&_9R@56*b@e3 z8KD4e%t6B#F3Q(maamg-eM;t{&rs#bccTy9Lqo0c<2&eY9NgMgtc_*Ve5(d?Hh` zZja={oDcyUBS+DIRVQ<^?$|r^x@CIJT1f-nTx&cJ|6&fmAg8yPJp7+@Jf^iY4?UQd zaWrgf$ZWSF4_;^B*k~#z&yhU*(G7S7A;0PM$n*vWAtMGpC%4bKxnB$~mZ5U)=kV(^ z)Gv32_sVbm;PzA)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