Fix configureevent with free mode, set hinted client as free
This commit is contained in:
parent
aa71bf00f9
commit
409d26bf7b
@ -904,6 +904,9 @@ client_new(Window w, XWindowAttributes *wa, bool scan)
|
|||||||
/* Set tag */
|
/* Set tag */
|
||||||
client_get_sizeh(c);
|
client_get_sizeh(c);
|
||||||
|
|
||||||
|
if(c->flags & CLIENT_HINT_FLAG /* && OPTIONKIVABIEN */)
|
||||||
|
c->flags |= CLIENT_FREE;
|
||||||
|
|
||||||
if(!scan)
|
if(!scan)
|
||||||
tag_client((c->flags & CLIENT_RULED ? c->tag : c->screen->seltag), c);
|
tag_client((c->flags & CLIENT_RULED ? c->tag : c->screen->seltag), c);
|
||||||
|
|
||||||
|
|||||||
16
src/event.c
16
src/event.c
@ -131,6 +131,21 @@ event_configureevent(XEvent *e)
|
|||||||
struct client *c;
|
struct client *c;
|
||||||
|
|
||||||
if((c = client_gb_win(ev->window)))
|
if((c = client_gb_win(ev->window)))
|
||||||
|
{
|
||||||
|
if(c->flags & CLIENT_FREE)
|
||||||
|
{
|
||||||
|
if(ev->value_mask & CWX)
|
||||||
|
c->geo.x = ev->x;
|
||||||
|
if(ev->value_mask & CWY)
|
||||||
|
c->geo.y = ev->y;
|
||||||
|
if(ev->value_mask & CWWidth)
|
||||||
|
c->geo.w = ev->width + c->border + c->border;
|
||||||
|
if(ev->value_mask & CWHeight)
|
||||||
|
c->geo.h = ev->height + c->tbarw + c->border;
|
||||||
|
|
||||||
|
client_moveresize(c, &c->geo);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if(ev->value_mask & CWWidth)
|
if(ev->value_mask & CWWidth)
|
||||||
_fac_resize(c, Right, ev->width - c->wgeo.w);
|
_fac_resize(c, Right, ev->width - c->wgeo.w);
|
||||||
@ -139,6 +154,7 @@ event_configureevent(XEvent *e)
|
|||||||
|
|
||||||
client_apply_tgeo(c->tag);
|
client_apply_tgeo(c->tag);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wc.x = ev->x;
|
wc.x = ev->x;
|
||||||
|
|||||||
@ -319,7 +319,6 @@ layout_split_arrange_closed(struct client *ghost)
|
|||||||
bool b = false;
|
bool b = false;
|
||||||
enum position p;
|
enum position p;
|
||||||
|
|
||||||
|
|
||||||
/* Search for single parent for easy resize
|
/* Search for single parent for easy resize
|
||||||
* Example case:
|
* Example case:
|
||||||
* ___________ ___________
|
* ___________ ___________
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user