From f330cb303c1a1cf372b2dd87c221e26e31e8d582 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 26 Oct 2007 19:49:21 +0200 Subject: [PATCH] rename manage() and unmanage() to client_*() --- awesome.c | 6 +++--- client.c | 4 ++-- client.h | 4 ++-- event.c | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/awesome.c b/awesome.c index a17bc767..107a5b0a 100644 --- a/awesome.c +++ b/awesome.c @@ -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]); } } } diff --git a/client.c b/client.c index 50791399..3c570dc4 100644 --- a/client.c +++ b/client.c @@ -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; diff --git a/client.h b/client.h index 2e8111d7..e1e2a9ec 100644 --- a/client.h +++ b/client.h @@ -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); diff --git a/event.c b/event.c index 16a7d284..de6a9821 100644 --- a/event.c +++ b/event.c @@ -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