Wmfs: Remove comment things

This commit is contained in:
Martin Duquesnoy 2008-10-19 14:29:31 +02:00
parent 1b6a4fa1da
commit 24fe19225a
3 changed files with 8 additions and 15 deletions

View File

@ -188,12 +188,6 @@ client_gettbar(Window w)
void
client_hide(Client *c)
{
//XMoveWindow(dpy, c->win, c->geo.x, c->geo.y + sgeo.height*2);
//if(conf.ttbarheight)
// bar_moveresize(c->tbar, c->geo.x,
// c->geo.y + sgeo.height*2,
//c->geo.width, c->geo.height);
XUnmapWindow(dpy, c->win);
if(conf.ttbarheight)
XUnmapWindow(dpy, c->tbar->win);
@ -464,12 +458,6 @@ raiseclient(Client *c)
void
client_unhide(Client *c)
{
//XMoveWindow(dpy, c->win, c->geo.x, c->geo.y);
//if(conf.ttbarheight)
// bar_moveresize(c->tbar, c->geo.x,
// c->geo.y - conf.ttbarheight,
// c->geo.width, conf.ttbarheight);
XMapWindow(dpy, c->win);
if(conf.ttbarheight)
XMapWindow(dpy, c->tbar->win);

View File

@ -458,6 +458,7 @@ void
propertynotify(XEvent ev)
{
Client *c;
Window trans;
if(event.xproperty.state == PropertyDelete)
return;
@ -465,6 +466,12 @@ propertynotify(XEvent ev)
{
switch(event.xproperty.atom)
{
default: break;
case XA_WM_TRANSIENT_FOR:
XGetTransientForHint(dpy, c->win, &trans);
if((c->tile || c->max) && (c->hint = (getclient(trans) != NULL)))
arrange();
break;
case XA_WM_NORMAL_HINTS:
client_size_hints(c);
break;
@ -485,7 +492,7 @@ unmapnotify(XEvent ev)
if((c = getclient(ev.xunmap.window)))
if(!c->hide && ev.xunmap.send_event
&& getwinstate(c->win) == NormalState)
&& getwinstate(c->win) == NormalState)
client_unmanage(c);
return;

View File

@ -255,8 +255,6 @@ tile(void)
cgeo.height = tileheight - border;
}
//cgeo.height -= conf.ttbarheight;
client_moveresize(c, cgeo, tags[seltag].resizehint);
if(n > nmaster && tileheight != sgeo.height)