Below is a cosmetic diff to current cwm
which merely renames two functions.

Everywhere in the code and configuration and bindings and the manpage,
the function that does horizontal maximization is named "hmaximize",
except the actual function that ultimately gets called and does
the resizing, which is named "client_horizmaximize". This diff
changes it to "client_hmaximize" too.

Similarly for "vmaximize" everywhere vs "vertmaximize".

I thought I would try to get this renaming in
before sending another diff with "[lrud]maximize"
(maximize to the left/right/up/down).

        Jan


Index: calmwm.h
===================================================================
RCS file: /cvs/xenocara/app/cwm/calmwm.h,v
retrieving revision 1.182
diff -u -p -r1.182 calmwm.h
--- calmwm.h    2 Jan 2013 16:26:34 -0000       1.182
+++ calmwm.h    4 Jan 2013 11:13:48 -0000
@@ -325,7 +325,7 @@ struct client_ctx   *client_find(Window);
 void                    client_freeze(struct client_ctx *);
 void                    client_getsizehints(struct client_ctx *);
 void                    client_hide(struct client_ctx *);
-void                    client_horizmaximize(struct client_ctx *);
+void                    client_hmaximize(struct client_ctx *);
 void                    client_leave(struct client_ctx *);
 void                    client_lower(struct client_ctx *);
 void                    client_map(struct client_ctx *);
@@ -342,7 +342,7 @@ void                         client_setname(struct 
client_ctx
 int                     client_snapcalc(int, int, int, int, int);
 void                    client_transient(struct client_ctx *);
 void                    client_unhide(struct client_ctx *);
-void                    client_vertmaximize(struct client_ctx *);
+void                    client_vmaximize(struct client_ctx *);
 void                    client_warp(struct client_ctx *);
 
 void                    group_alltoggle(struct screen_ctx *);
Index: client.c
===================================================================
RCS file: /cvs/xenocara/app/cwm/client.c,v
retrieving revision 1.113
diff -u -p -r1.113 client.c
--- client.c    2 Jan 2013 21:37:21 -0000       1.113
+++ client.c    4 Jan 2013 11:13:48 -0000
@@ -298,7 +298,7 @@ resize:
 }
 
 void
-client_vertmaximize(struct client_ctx *cc)
+client_vmaximize(struct client_ctx *cc)
 {
        struct screen_ctx       *sc = cc->sc;
        struct geom              xine;
@@ -339,7 +339,7 @@ resize:
 }
 
 void
-client_horizmaximize(struct client_ctx *cc)
+client_hmaximize(struct client_ctx *cc)
 {
        struct screen_ctx       *sc = cc->sc;
        struct geom              xine;
Index: kbfunc.c
===================================================================
RCS file: /cvs/xenocara/app/cwm/kbfunc.c,v
retrieving revision 1.74
diff -u -p -r1.74 kbfunc.c
--- kbfunc.c    2 Jan 2013 21:41:14 -0000       1.74
+++ kbfunc.c    4 Jan 2013 11:13:48 -0000
@@ -452,13 +452,13 @@ kbfunc_client_maximize(struct client_ctx
 void
 kbfunc_client_vmaximize(struct client_ctx *cc, union arg *arg)
 {
-       client_vertmaximize(cc);
+       client_vmaximize(cc);
 }
 
 void
 kbfunc_client_hmaximize(struct client_ctx *cc, union arg *arg)
 {
-       client_horizmaximize(cc);
+       client_hmaximize(cc);
 }
 
 void

Reply via email to