use client_setfloating()

This commit is contained in:
Julien Danjou 2008-01-18 10:35:55 +01:00
parent 85752e00d0
commit 5f174527e1
1 changed files with 7 additions and 3 deletions

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);