Window manager question - Disable move drag

Olivier Fourdan fourdan at gmail.com
Wed Aug 12 09:42:52 CEST 2009


On Wed, Aug 12, 2009 at 12:54 AM, Raghavendra Prabhu<rrprabhu at gmail.com> wrote:
> Thank you very much  Olivier.
> I will give this a shot. This was very much helpful/
> Regards,

For more details, check the function clientGetMWMHints() in xfwm4
source code in src/client.c, look for the flag  MWM_FUNC_MOVE

That gets translated to an internal flag XFWM_FLAG_HAS_MOVE which, if
set prevents moving:

In src/moveresize.c, look in clientMove():

void
clientMove (Client * c, XEvent * ev)
{
    ...
    if (!FLAG_TEST (c->xfwm_flags, XFWM_FLAG_HAS_MOVE))
    {
        return;
    }
    ...
}

So that should work just as expected :)

Cheers,
Olivier.



More information about the Xfce mailing list