summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2008-07-15 22:12:10 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2008-07-15 22:12:10 +0000
commit4633f99893c29f572157d9cda4c7438dd6a4a0c4 (patch)
treeb6cb2c1d9e038d2e1919fa5b7ff5487c6f6983d4
parentbff69c4fe1e75c3c323617e4dde24c4a13da72af (diff)
move client_vertmaximize to a more sensible location, purely for readability.
"don't mind at all" oga@
-rw-r--r--app/cwm/client.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c
index de74324f2..e846697f9 100644
--- a/app/cwm/client.c
+++ b/app/cwm/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: client.c,v 1.37 2008/07/15 22:06:48 okan Exp $
+ * $Id: client.c,v 1.38 2008/07/15 22:12:09 okan Exp $
*/
#include "headers.h"
@@ -339,6 +339,25 @@ client_maximize(struct client_ctx *cc)
}
void
+client_vertmaximize(struct client_ctx *cc)
+{
+ struct screen_ctx *sc = CCTOSC(cc);
+
+ if (cc->flags & CLIENT_VMAXIMIZED) {
+ cc->geom = cc->savegeom;
+ } else {
+ if (!(cc->flags & CLIENT_MAXIMIZED))
+ cc->savegeom = cc->geom;
+ cc->geom.y = cc->bwidth + Conf.gap_top;
+ cc->geom.height = (sc->ymax - cc->bwidth * 2) -
+ (Conf.gap_top + Conf.gap_bottom);
+ cc->flags |= CLIENT_DOVMAXIMIZE;
+ }
+
+ client_resize(cc);
+}
+
+void
client_resize(struct client_ctx *cc)
{
if (cc->flags & (CLIENT_MAXIMIZED | CLIENT_VMAXIMIZED))
@@ -693,25 +712,6 @@ client_placecalc(struct client_ctx *cc)
}
void
-client_vertmaximize(struct client_ctx *cc)
-{
- struct screen_ctx *sc = CCTOSC(cc);
-
- if (cc->flags & CLIENT_VMAXIMIZED) {
- cc->geom = cc->savegeom;
- } else {
- if (!(cc->flags & CLIENT_MAXIMIZED))
- cc->savegeom = cc->geom;
- cc->geom.y = cc->bwidth + Conf.gap_top;
- cc->geom.height = (sc->ymax - cc->bwidth * 2) -
- (Conf.gap_top + Conf.gap_bottom);
- cc->flags |= CLIENT_DOVMAXIMIZE;
- }
-
- client_resize(cc);
-}
-
-void
client_mtf(struct client_ctx *cc)
{
struct screen_ctx *sc;