placemouse: upgrade to include moveorplace function
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
void
|
||||
moveorplace(const Arg *arg) {
|
||||
if ((!selmon->lt[selmon->sellt]->arrange || selmon->sel->isfloating))
|
||||
movemouse(arg);
|
||||
else
|
||||
placemouse(arg);
|
||||
}
|
||||
|
||||
void
|
||||
placemouse(const Arg *arg)
|
||||
{
|
||||
@@ -117,9 +125,9 @@ placemouse(const Arg *arg)
|
||||
attach(c);
|
||||
attachstack(c);
|
||||
selmon = m;
|
||||
focus(c);
|
||||
}
|
||||
|
||||
focus(c);
|
||||
c->beingmoved = 0;
|
||||
|
||||
if (nx != -9999)
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#define INTERSECTC(x,y,w,h,z) (MAX(0, MIN((x)+(w),(z)->x+(z)->w) - MAX((x),(z)->x)) \
|
||||
* MAX(0, MIN((y)+(h),(z)->y+(z)->h) - MAX((y),(z)->y)))
|
||||
|
||||
static void moveorplace(const Arg *arg);
|
||||
static void placemouse(const Arg *arg);
|
||||
static Client *recttoclient(int x, int y, int w, int h);
|
||||
|
Reference in New Issue
Block a user