aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-04 19:07:11 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-04 20:05:19 +0200
commit89463d5c0e9b23e1c5c6285183622a0615890005 (patch)
treee3e3e7a27976d24e5b7de072310aa50480a4b123 /monsterwm.c
parent3cbcade190cd41ebd9bb1aa8664222ea0b9016c1 (diff)
rename add_window() to addwindow() to match deletewindow() function naming
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/monsterwm.c b/monsterwm.c
index 56a2a1f..e16c46a 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -54,7 +54,7 @@ typedef struct {
} AppRule;
/* Functions */
-static void add_window(Window w);
+static void addwindow(Window w);
static void buttonpress(XEvent *e);
static void change_desktop(const Arg *arg);
static void cleanup(void);
@@ -136,7 +136,7 @@ static void (*events[LASTEvent])(XEvent *e) = {
[PropertyNotify] = propertynotify,
};
-void add_window(Window w) {
+void addwindow(Window w) {
client *c, *t;
if (!(c = (client *)calloc(1, sizeof(client))))
die("error: could not calloc() %u bytes\n", sizeof(client));
@@ -196,7 +196,7 @@ void client_to_desktop(const Arg *arg) {
client *c = current;
if (c->isfullscreen) setfullscreen(c, False);
select_desktop(arg->i);
- add_window(c->win);
+ addwindow(c->win);
select_desktop(cd);
XUnmapWindow(dis, c->win);
removeclient(c);
@@ -350,7 +350,7 @@ void maprequest(XEvent *e) {
if (ch.res_name) XFree(ch.res_name);
select_desktop(newdsk);
- add_window(e->xmaprequest.window);
+ addwindow(e->xmaprequest.window);
select_desktop(cd);
if (cd == newdsk) {
if (!(current->istransient = istransient)) tile();