layout: Improve toggle free: set the old selected client position / size if the toggle set free

This commit is contained in:
Martin Duquesnoy 2008-11-09 20:34:37 +01:00
parent 5f9ec19234
commit 91494deaf1
2 changed files with 9 additions and 13 deletions

View File

@ -499,6 +499,15 @@ uicb_togglefree(uicb_t cmd)
sel->tile = False;
sel->max = False;
sel->lmax = False;
if(sel->free)
{
sel->geo.x = sel->ogeo.x;
sel->geo.y = sel->ogeo.y;
sel->geo.width = sel->ogeo.width;
sel->geo.height = sel->ogeo.height;
client_moveresize(sel, sel->geo, True);
}
client_raise(sel);
arrange();

View File

@ -129,19 +129,6 @@ typedef struct
char statustext[1024];
} InfoBar;
/* Surface \o/ */
typedef struct
{
char *text;
Drawable dr;
Window win;
XRectangle geo;
MouseBinding mousebind[10];
int nmouse;
char *fg;
uint bg;
} Surface;
/* Layout Structure */
typedef struct
{