use client_setfloating()

This commit is contained in:
Julien Danjou 2008-01-18 10:35:55 +01:00
parent 85752e00d0
commit 5f174527e1

10
mouse.c
View file

@ -53,9 +53,13 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused)))
if(!c)
return;
if(layout->arrange != layout_floating
&& !c->isfloating)
uicb_client_togglefloating(screen, (char *) "be nice");
if(layout->arrange != layout_floating && !c->isfloating)
{
/* ugly hack: copy current geom to be floating
* because mouse will be far away from window otherwise */
c->f_geometry = c->geometry;
client_setfloating(c, True);
}
restack(screen);