Prevent user the resize client while using tile_grid vertically or

horizontally.
This commit is contained in:
Raphael Khaiat 2010-06-25 13:52:04 +02:00
parent cee16d6f7f
commit 414273fff9

View File

@ -247,7 +247,9 @@ mouse_resize(Client *c)
{
/* To resize MWFACT in tile mode */
if((c->flags & TileFlag)
&& tags[selscreen][seltag[selscreen]].layout.func != grid)
&& tags[selscreen][seltag[selscreen]].layout.func != grid // for backward compatibility
&& tags[selscreen][seltag[selscreen]].layout.func != grid_vertical
&& tags[selscreen][seltag[selscreen]].layout.func != grid_horizontal)
{
if(tags[selscreen][seltag[selscreen]].layout.func == tile)
mwf += (ROUND(ev.xmotion.x_root) - omx) / (sgeo[c->screen].width);