diff options
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -184,6 +184,7 @@ static void mappingnotify(XEvent *e); static void maprequest(XEvent *e); static void motionnotify(XEvent *e); static void movemouse(const Arg *arg); +static void moveresize(const Arg *arg); static Client *nexttiled(Client *c); static void pop(Client *c); static void propertynotify(XEvent *e); @@ -277,6 +278,22 @@ static Window root, wmcheckwin; struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; }; /* function implementations */ + +static void +moveresize(const Arg *arg) +{ + XEvent ev; + Monitor *m = selmon; + if(!(m->sel && arg && arg->v && m->sel->isfloating)) + return; + resize(m->sel, m->sel->x + ((int *)arg->v)[0], + m->sel->y + ((int *)arg->v)[1], + m->sel->w + ((int *)arg->v)[2], + m->sel->h + ((int *)arg->v)[3], + True); + while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); +} + void applyrules(Client *c) { |