rename manage() and unmanage() to client_*()

This commit is contained in:
Julien Danjou 2007-10-26 19:49:21 +02:00
parent d24413a75d
commit f330cb303c
4 changed files with 10 additions and 10 deletions

View file

@ -64,7 +64,7 @@ cleanup(awesome_config *awesomeconf)
while(*awesomeconf->clients)
{
unban(*awesomeconf->clients);
unmanage(*awesomeconf->clients, NormalState, awesomeconf);
client_unmanage(*awesomeconf->clients, NormalState, awesomeconf);
}
for(screen = 0; screen < get_screen_count(awesomeconf->display); screen++)
@ -132,7 +132,7 @@ scan(awesome_config *awesomeconf)
{
if(screen == 0)
real_screen = get_screen_bycoord(awesomeconf->display, wa.x, wa.y);
manage(wins[i], &wa, &awesomeconf[real_screen]);
client_manage(wins[i], &wa, &awesomeconf[real_screen]);
}
}
/* now the transients */
@ -145,7 +145,7 @@ scan(awesome_config *awesomeconf)
{
if(screen == 0)
real_screen = get_screen_bycoord(awesomeconf->display, wa.x, wa.y);
manage(wins[i], &wa, &awesomeconf[real_screen]);
client_manage(wins[i], &wa, &awesomeconf[real_screen]);
}
}
}

View file

@ -257,7 +257,7 @@ loadprops(Client *c, int ntags)
* \param awesomeconf awesome config
*/
void
manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
client_manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
{
int i, tag;
Client *c, *t = NULL;
@ -484,7 +484,7 @@ unban(Client *c)
}
void
unmanage(Client *c, long state, awesome_config *awesomeconf)
client_unmanage(Client *c, long state, awesome_config *awesomeconf)
{
XWindowChanges wc;
int tag;

View file

@ -30,10 +30,10 @@ inline void client_detach(Client **, Client *);
void client_reattach_after(Client *, Client *);
void ban(Client *);
void focus(Client *, Bool, awesome_config *);
void manage(Window, XWindowAttributes *, awesome_config *);
void client_manage(Window, XWindowAttributes *, awesome_config *);
void client_resize(Client *, int, int, int, int, awesome_config *, Bool);
void unban(Client *);
void unmanage(Client *, long, awesome_config *);
void client_unmanage(Client *, long, awesome_config *);
inline void updatesizehints(Client *);
void updatetitle(Client *);
void saveprops(Client *, int);

View file

@ -341,7 +341,7 @@ handle_event_destroynotify(XEvent * e, awesome_config *awesomeconf)
XDestroyWindowEvent *ev = &e->xdestroywindow;
if((c = get_client_bywin(*awesomeconf->clients, ev->window)))
unmanage(c, WithdrawnState, &awesomeconf[c->screen]);
client_unmanage(c, WithdrawnState, &awesomeconf[c->screen]);
}
void
@ -464,7 +464,7 @@ handle_event_maprequest(XEvent * e, awesome_config *awesomeconf)
screen = get_screen_bycoord(e->xany.display, x, y);
}
manage(ev->window, &wa, &awesomeconf[screen]);
client_manage(ev->window, &wa, &awesomeconf[screen]);
}
}
@ -508,7 +508,7 @@ handle_event_unmapnotify(XEvent * e, awesome_config *awesomeconf)
if((c = get_client_bywin(*awesomeconf->clients, ev->window))
&& ev->event == RootWindow(e->xany.display, c->phys_screen)
&& ev->send_event && window_getstate(c->display, c->win) == NormalState)
unmanage(c, WithdrawnState, &awesomeconf[c->screen]);
client_unmanage(c, WithdrawnState, &awesomeconf[c->screen]);
}
void