aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2011-12-14 10:32:50 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2011-12-14 10:32:50 +0200
commit68335f2ecf2cb8427d8874e1f96fae0c87cfb870 (patch)
treecb543d00217baf91e12e3dc27fd8300efaa4e322
parentb56aa5c0626de41982cbbb9ad4bfa782493a5b57 (diff)
monocle ~ not monocycle :P
-rw-r--r--config.def.h4
-rw-r--r--config.h4
-rw-r--r--dminiwm.c22
3 files changed, 15 insertions, 15 deletions
diff --git a/config.def.h b/config.def.h
index f04e1a8..62ed754 100644
--- a/config.def.h
+++ b/config.def.h
@@ -27,7 +27,7 @@
#define SHOW_PANEL True /* show panel by default on exec */
#define TOP_PANEL True /* False mean panel is on bottom */
#define PANEL_HEIGHT 18 /* 0 for no space for panel, thus no panel */
-#define DEFAULT_MODE TILE /* TILE MONOCYCLE BSTACK GRID */
+#define DEFAULT_MODE TILE /* TILE MONOCLE BSTACK GRID */
#define ATTACH_ASIDE True /* False means new window is master */
#define FOLLOW_MOUSE False /* Focus the window the mouse just entered */
#define FOLLOW_WINDOW False /* Follow the window when moved to a different desktop */
@@ -71,7 +71,7 @@ static key keys[] = {
{ MOD1|ShiftMask, XK_j, move_down, {NULL}},
{ MOD1|ShiftMask, XK_k, move_up, {NULL}},
{ MOD1|ShiftMask, XK_t, switch_mode, {.i = TILE}},
- { MOD1|ShiftMask, XK_m, switch_mode, {.i = MONOCYCLE}},
+ { MOD1|ShiftMask, XK_m, switch_mode, {.i = MONOCLE}},
{ MOD1|ShiftMask, XK_b, switch_mode, {.i = BSTACK}},
{ MOD1|ShiftMask, XK_g, switch_mode, {.i = GRID}},
{ MOD1|ShiftMask, XK_r, quit, {.i = 0}}, /* quit with exit value 0 */
diff --git a/config.h b/config.h
index eebe473..e66e38f 100644
--- a/config.h
+++ b/config.h
@@ -27,7 +27,7 @@
#define SHOW_PANEL True /* show panel by default on exec */
#define TOP_PANEL True /* False mean panel is on bottom */
#define PANEL_HEIGHT 18 /* 0 for no space for panel, thus no panel */
-#define DEFAULT_MODE TILE /* TILE MONOCYCLE BSTACK GRID */
+#define DEFAULT_MODE TILE /* TILE MONOCLE BSTACK GRID */
#define ATTACH_ASIDE True /* False means new window is master */
#define FOLLOW_MOUSE False /* Focus the window the mouse just entered */
#define FOLLOW_WINDOW False /* Follow the window when moved to a different desktop */
@@ -82,7 +82,7 @@ static key keys[] = {
{ MOD1|ShiftMask, XK_j, move_down, {NULL}},
{ MOD1|ShiftMask, XK_k, move_up, {NULL}},
{ MOD1|ShiftMask, XK_t, switch_mode, {.i = TILE}},
- { MOD1|ShiftMask, XK_m, switch_mode, {.i = MONOCYCLE}},
+ { MOD1|ShiftMask, XK_m, switch_mode, {.i = MONOCLE}},
{ MOD1|ShiftMask, XK_b, switch_mode, {.i = BSTACK}},
{ MOD1|ShiftMask, XK_g, switch_mode, {.i = GRID}},
{ MOD1|ShiftMask, XK_r, quit, {.i = 0}}, /* restart */
diff --git a/dminiwm.c b/dminiwm.c
index 01b3f0e..a194d9a 100644
--- a/dminiwm.c
+++ b/dminiwm.c
@@ -45,7 +45,7 @@ enum {
/* layout modes */
enum {
TILE,
- MONOCYCLE,
+ MONOCLE,
BSTACK,
GRID,
};
@@ -208,7 +208,7 @@ void removeclient(client *c) {
save_desktop(current_desktop);
tile();
- if(mode == MONOCYCLE && current)
+ if(mode == MONOCLE && current)
XMapWindow(dis, current->win);
update_current();
}
@@ -221,18 +221,18 @@ void killclient() {
void next_win() {
if(!current || (!current->next && !current->prev)) return;
- if(mode == MONOCYCLE) XUnmapWindow(dis, current->win);
+ if(mode == MONOCLE) XUnmapWindow(dis, current->win);
current = (current->next) ? current->next : head;
- if(mode == MONOCYCLE) XMapWindow(dis, current->win);
+ if(mode == MONOCLE) XMapWindow(dis, current->win);
update_current();
}
void prev_win() {
if(!current || (!current->next && !current->prev)) return;
- if(mode == MONOCYCLE) XUnmapWindow(dis, current->win);
+ if(mode == MONOCLE) XUnmapWindow(dis, current->win);
if(current->prev) current = current->prev;
else while(current->next) current=current->next;
- if(mode == MONOCYCLE) XMapWindow(dis, current->win);
+ if(mode == MONOCLE) XMapWindow(dis, current->win);
update_current();
}
@@ -259,7 +259,7 @@ void move_up() {
}
void swap_master() {
- if(!current || !head->next || mode == MONOCYCLE) return;
+ if(!current || !head->next || mode == MONOCLE) return;
Window tmpwin = head->win;
current = (current == head) ? head->next : current;
head->win = current->win;
@@ -283,7 +283,7 @@ void change_desktop(const Arg arg) {
/* read new desktop properties, tile and map new windows */
select_desktop(arg.i);
tile();
- if(mode == MONOCYCLE && current) XMapWindow(dis, current->win);
+ if(mode == MONOCLE && current) XMapWindow(dis, current->win);
else for(client *c=head; c; c=c->next) XMapWindow(dis, c->win);
update_current();
@@ -370,7 +370,7 @@ void tile(void) {
y += sh/n - growth / (n-1);
}
break;
- case MONOCYCLE:
+ case MONOCLE:
for(c=head; c; c=c->next)
XMoveResizeWindow(dis, c->win, 0, y, sw + 2*BORDER_WIDTH, sh + 2*BORDER_WIDTH);
break;
@@ -460,7 +460,7 @@ void update_current(void) {
client *c;
for(c=head; c; c=c->next) {
- if(!head->next || mode == MONOCYCLE)
+ if(!head->next || mode == MONOCLE)
XSetWindowBorderWidth(dis, c->win, 0);
else
XSetWindowBorderWidth(dis, c->win, BORDER_WIDTH);
@@ -482,7 +482,7 @@ void update_current(void) {
void switch_mode(const Arg arg) {
if(mode == arg.i) return;
- if(mode == MONOCYCLE) for(client *c=head; c; c=c->next) XMapWindow(dis, c->win);
+ if(mode == MONOCLE) for(client *c=head; c; c=c->next) XMapWindow(dis, c->win);
mode = arg.i;
if(mode == TILE || mode == GRID) master_size = sw * MASTER_SIZE;
else if(mode == BSTACK) master_size = sh * MASTER_SIZE;