diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-06-25 17:09:39 +0300 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-06-28 16:27:56 +0300 |
| commit | 11960c846dbe41a6eeb152ac65bf08b71d5984ad (patch) | |
| tree | ba266b75bb3953d9dcc393100cefd6cc57ba7df9 | |
| parent | 61a24d7091d7ca0009a7e9216c0f3bc79ba262dd (diff) | |
rename previous_desktop to prevdeskidx
| -rw-r--r-- | monsterwm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/monsterwm.c b/monsterwm.c index 91cd1cb..194eb41 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -151,7 +151,7 @@ static int xerrorstart(); #include "config.h" static Bool running = True; -static int previous_desktop = 0, current_desktop = 0; +static int prevdeskidx = 0, current_desktop = 0; static int screen, wh, ww, mode = DEFAULT_MODE; static int (*xerrorxlib)(Display *, XErrorEvent *); static unsigned int numlockmask = 0, win_unfocus, win_focus; @@ -214,11 +214,11 @@ void buttonpress(XEvent *e) { * first all others then the current */ void change_desktop(const Arg *arg) { if (arg->i == current_desktop) return; - previous_desktop = current_desktop; + prevdeskidx = current_desktop; selectdesktop(arg->i); if (current) XMapWindow(dis, current->win); for (Client *c=head; c; c=c->next) XMapWindow(dis, c->win); - selectdesktop(previous_desktop); + selectdesktop(prevdeskidx); for (Client *c=head; c; c=c->next) if (c != current) XUnmapWindow(dis, c->win); if (current) XUnmapWindow(dis, current->win); selectdesktop(arg->i); |
