client: Fix hide/unhide
This commit is contained in:
10
src/client.c
10
src/client.c
@@ -66,7 +66,7 @@ client_detach(Client *c)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fixed, need testing */
|
/* Fixed, need testing4 */
|
||||||
void
|
void
|
||||||
uicb_client_prev(uicb_t cmd)
|
uicb_client_prev(uicb_t cmd)
|
||||||
{
|
{
|
||||||
@@ -176,9 +176,7 @@ client_gettbar(Window w)
|
|||||||
void
|
void
|
||||||
client_hide(Client *c)
|
client_hide(Client *c)
|
||||||
{
|
{
|
||||||
XMoveWindow(dpy, c->win, c->geo.x + mw * 2, c->geo.y);
|
client_unmap(c);
|
||||||
if(conf.titlebar.height)
|
|
||||||
XMoveWindow(dpy, c->tbar->win, c->geo.x + mw * 2, c->geo.y);
|
|
||||||
setwinstate(c->win, IconicState);
|
setwinstate(c->win, IconicState);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@@ -456,9 +454,7 @@ uicb_client_raise(uicb_t cmd)
|
|||||||
void
|
void
|
||||||
client_unhide(Client *c)
|
client_unhide(Client *c)
|
||||||
{
|
{
|
||||||
XMoveWindow(dpy, c->win, c->geo.x, c->geo.y);
|
client_map(c);
|
||||||
if(conf.titlebar.height)
|
|
||||||
XMoveWindow(dpy, c->tbar->win, c->geo.x, c->geo.y - conf.titlebar.height);
|
|
||||||
setwinstate(c->win, NormalState);
|
setwinstate(c->win, NormalState);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user