progman.exe^H^H^H^H
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

manage: Fix edge resistence when (quickly) moving windows.

authored by

Robert Lillack and committed by
joshua stein
dba2dc69 3a996278

+17 -4
+17 -4
manage.c
··· 826 826 /* left edge */ 827 827 if (newx - c->resize_w_geom.w >= (long)s->left || 828 828 newx - c->resize_w_geom.w < (long)s->left - 829 - opt_edge_resist) 829 + opt_edge_resist) { 830 830 c->geom.x = newx; 831 + } else { 832 + c->geom.x = (long)s->left + c->resize_w_geom.w; 833 + } 831 834 } else { 832 835 /* right edge */ 833 836 if (newx + c->geom.w + c->resize_e_geom.w <= sw || 834 837 newx + c->geom.w + c->resize_e_geom.w > sw + 835 - opt_edge_resist) 838 + opt_edge_resist) { 836 839 c->geom.x = newx; 840 + } else { 841 + c->geom.x = sw - c->geom.w - c->resize_e_geom.w; 842 + } 837 843 } 838 844 839 845 if (y1 < y0) { ··· 841 847 if (newy - c->resize_n_geom.h - c->titlebar_geom.h >= 842 848 (long)s->top || 843 849 newy - c->resize_n_geom.h - c->titlebar_geom.h < 844 - (long)s->top - opt_edge_resist) 850 + (long)s->top - opt_edge_resist) { 845 851 c->geom.y = newy; 852 + } else { 853 + c->geom.y = (long)s->top + c->resize_n_geom.h + 854 + c->titlebar_geom.h; 855 + } 846 856 } else { 847 857 /* bottom edge */ 848 858 if (newy + c->geom.h + c->resize_s_geom.h <= sh || 849 859 newy + c->geom.h + c->resize_s_geom.h > sh + 850 - opt_edge_resist) 860 + opt_edge_resist) { 851 861 c->geom.y = newy; 862 + } else { 863 + c->geom.y = sh - c->geom.h - c->resize_s_geom.h; 864 + } 852 865 } 853 866 854 867 recalc_frame(c);