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) while(*awesomeconf->clients)
{ {
unban(*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++) for(screen = 0; screen < get_screen_count(awesomeconf->display); screen++)
@ -132,7 +132,7 @@ scan(awesome_config *awesomeconf)
{ {
if(screen == 0) if(screen == 0)
real_screen = get_screen_bycoord(awesomeconf->display, wa.x, wa.y); 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 */ /* now the transients */
@ -145,7 +145,7 @@ scan(awesome_config *awesomeconf)
{ {
if(screen == 0) if(screen == 0)
real_screen = get_screen_bycoord(awesomeconf->display, wa.x, wa.y); 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 * \param awesomeconf awesome config
*/ */
void void
manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf) client_manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
{ {
int i, tag; int i, tag;
Client *c, *t = NULL; Client *c, *t = NULL;
@ -484,7 +484,7 @@ unban(Client *c)
} }
void void
unmanage(Client *c, long state, awesome_config *awesomeconf) client_unmanage(Client *c, long state, awesome_config *awesomeconf)
{ {
XWindowChanges wc; XWindowChanges wc;
int tag; int tag;

View File

@ -30,10 +30,10 @@ inline void client_detach(Client **, Client *);
void client_reattach_after(Client *, Client *); void client_reattach_after(Client *, Client *);
void ban(Client *); void ban(Client *);
void focus(Client *, Bool, awesome_config *); 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 client_resize(Client *, int, int, int, int, awesome_config *, Bool);
void unban(Client *); void unban(Client *);
void unmanage(Client *, long, awesome_config *); void client_unmanage(Client *, long, awesome_config *);
inline void updatesizehints(Client *); inline void updatesizehints(Client *);
void updatetitle(Client *); void updatetitle(Client *);
void saveprops(Client *, int); void saveprops(Client *, int);

View File

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