Adding cursor icons for resizecorners, resizepoint, dragmfact and dragcfact
This commit is contained in:
@@ -61,7 +61,7 @@ dragmfact(const Arg *arg)
|
||||
|
||||
if (layout == SPLIT_HORIZONTAL || layout == SPLIT_HORIZONTAL_DUAL_STACK)
|
||||
horizontal = 1;
|
||||
else if (layout == SPLIT_CENTERED_VERTICAL)
|
||||
else if (layout == SPLIT_CENTERED_VERTICAL && (n - m->nmaster) > 1)
|
||||
center = 1;
|
||||
else if (layout == FLOATING_MASTER) {
|
||||
center = 1;
|
||||
@@ -75,7 +75,7 @@ dragmfact(const Arg *arg)
|
||||
}
|
||||
#endif // FLEXTILE_DELUXE_LAYOUT
|
||||
#if CENTEREDMASTER_LAYOUT
|
||||
else if (m->lt[m->sellt]->arrange == ¢eredmaster)
|
||||
else if (m->lt[m->sellt]->arrange == ¢eredmaster && (n - m->nmaster) > 1)
|
||||
center = 1;
|
||||
#endif // CENTEREDMASTER_LAYOUT
|
||||
#if CENTEREDFLOATINGMASTER_LAYOUT
|
||||
@@ -91,10 +91,6 @@ dragmfact(const Arg *arg)
|
||||
horizontal = 1;
|
||||
#endif // BSTACKHORIZ_LAYOUT
|
||||
|
||||
if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
|
||||
None, cursor[CurResize]->cursor, CurrentTime) != GrabSuccess)
|
||||
return;
|
||||
|
||||
#if VANITYGAPS_PATCH
|
||||
ay += oh;
|
||||
ax += ov;
|
||||
@@ -148,6 +144,9 @@ dragmfact(const Arg *arg)
|
||||
py = ay + ah / 2;
|
||||
}
|
||||
|
||||
if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
|
||||
None, cursor[horizontal ? CurResizeVertArrow : CurResizeHorzArrow]->cursor, CurrentTime) != GrabSuccess)
|
||||
return;
|
||||
XWarpPointer(dpy, None, root, 0, 0, 0, 0, px, py);
|
||||
|
||||
do {
|
||||
|
Reference in New Issue
Block a user