mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
use client_setfloating()
This commit is contained in:
parent
85752e00d0
commit
5f174527e1
1 changed files with 7 additions and 3 deletions
10
mouse.c
10
mouse.c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue