layout: Improve toggle free: set the old selected client position / size if the toggle set free
This commit is contained in:
parent
5f9ec19234
commit
91494deaf1
@ -499,6 +499,15 @@ uicb_togglefree(uicb_t cmd)
|
|||||||
sel->tile = False;
|
sel->tile = False;
|
||||||
sel->max = False;
|
sel->max = False;
|
||||||
sel->lmax = 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);
|
client_raise(sel);
|
||||||
|
|
||||||
arrange();
|
arrange();
|
||||||
|
|||||||
@ -129,19 +129,6 @@ typedef struct
|
|||||||
char statustext[1024];
|
char statustext[1024];
|
||||||
} InfoBar;
|
} 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 */
|
/* Layout Structure */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user