mirror of
https://github.com/0intro/wmii
synced 2024-11-23 06:11:21 +03:00
small fix
This commit is contained in:
parent
4d5ad01a01
commit
0c1060ee1c
@ -30,7 +30,7 @@ check_horiz_match(XRectangle * r, XRectangle * neighbor)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
snap_move(XRectangle * r, XRectangle * rects,
|
snap_move(XRectangle *r, XRectangle *rects,
|
||||||
unsigned int num, int snapw, int snaph)
|
unsigned int num, int snapw, int snaph)
|
||||||
{
|
{
|
||||||
int i, j, w = 0, n = 0, e = 0, s = 0;
|
int i, j, w = 0, n = 0, e = 0, s = 0;
|
||||||
@ -238,8 +238,8 @@ do_mouse_move(Client *c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
snap_resize(XRectangle * r, XRectangle * o, BlitzAlign align,
|
snap_resize(XRectangle *r, XRectangle *o, BlitzAlign align,
|
||||||
XRectangle * rects, unsigned int num, int px, int ox, int py,
|
XRectangle *rects, unsigned int num, int px, int ox, int py,
|
||||||
int oy, int snapw, int snaph)
|
int oy, int snapw, int snaph)
|
||||||
{
|
{
|
||||||
int i, j, pend = 0;
|
int i, j, pend = 0;
|
||||||
@ -456,8 +456,7 @@ do_mouse_resize(Client *c, BlitzAlign align)
|
|||||||
XTranslateCoordinates(dpy, c->framewin, root, ev.xmotion.x,
|
XTranslateCoordinates(dpy, c->framewin, root, ev.xmotion.x,
|
||||||
ev.xmotion.y, &px, &py, &dummy);
|
ev.xmotion.y, &px, &py, &dummy);
|
||||||
draw_pseudo_border(&frect);
|
draw_pseudo_border(&frect);
|
||||||
if(!aidx)
|
snap_resize(&frect, &origin, align, rects, num, px,
|
||||||
snap_resize(&frect, &origin, align, rects, num, px,
|
|
||||||
ox, py, oy, snapw, snaph);
|
ox, py, oy, snapw, snaph);
|
||||||
draw_pseudo_border(&frect);
|
draw_pseudo_border(&frect);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user