Re: [dwm] move/resize keyboard control

From: Claudio <smoppy_AT_gmail.com>
Date: Fri, 26 Sep 2008 09:00:28 +0200

Your version of the function works properly, it's better to use array of
integers, indeed, and the focus is now "under control". Though i don't want
to toggle the window floating automatically and i prefer to check for arg
and arg->v before to use it.

That's my function now:

static void
moveresize(const Arg *arg)
{
   XEvent ev;

   if( ! (sel && arg && sel->isfloating && arg->v) )
      return;

   resize(sel, sel->x + ((int *)arg->v)[0],
               sel->y + ((int *)arg->v)[1],
               sel->w + ((int *)arg->v)[2],
               sel->h + ((int *)arg->v)[3], True);

   while( XCheckMaskEvent(dpy, EnterWindowMask, &ev) );

} /* moveresize() */

I still use "moveresize" since it's a wrapper for the resize() function not
strictly related to the keyboard. Isn't?

THX for your help, dwm is going to be "perfect" for me.

Saluti&Baci,
Claudio M. Alessi
Received on Fri Sep 26 2008 - 07:00:28 UTC

This archive was generated by hypermail 2.2.0 : Fri Sep 26 2008 - 07:12:04 UTC