aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-21 11:39:57 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-21 11:39:57 +0100
commit29c26b88e7333fb8ea022c4bb4277bc0394ab9e3 (patch)
treef48255b650c9b8ecf252a2b6a5b0ca10b4158780 /client.c
parentf196b71e4d543e7d8c4fd6398cf1bedd3dafc024 (diff)
downloaddwm-29c26b88e7333fb8ea022c4bb4277bc0394ab9e3.tar.zst
moved focus{next,prev} and nexttiled from client.c to layout.c (because those are not client-specific), moved toggleversatile() from layout.c to client.c (because those are client-specific)
Diffstat (limited to 'client.c')
-rw-r--r--client.c46
1 files changed, 8 insertions, 38 deletions
diff --git a/client.c b/client.c
index fdb973c..c962c39 100644
--- a/client.c
+++ b/client.c
@@ -171,38 +171,6 @@ focus(Client *c) {
}
void
-focusnext(Arg *arg) {
- Client *c;
-
- if(!sel)
- return;
- for(c = sel->next; c && !isvisible(c); c = c->next);
- if(!c)
- for(c = clients; c && !isvisible(c); c = c->next);
- if(c) {
- focus(c);
- restack();
- }
-}
-
-void
-focusprev(Arg *arg) {
- Client *c;
-
- if(!sel)
- return;
- for(c = sel->prev; c && !isvisible(c); c = c->prev);
- if(!c) {
- for(c = clients; c && c->next; c = c->next);
- for(; c && !isvisible(c); c = c->prev);
- }
- if(c) {
- focus(c);
- restack();
- }
-}
-
-void
killclient(Arg *arg) {
if(!sel)
return;
@@ -266,12 +234,6 @@ manage(Window w, XWindowAttributes *wa) {
lt->arrange();
}
-Client *
-nexttiled(Client *c) {
- for(; c && (c->isversatile || !isvisible(c)); c = c->next);
- return c;
-}
-
void
resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
float actual, dx, dy, max, min;
@@ -341,6 +303,14 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
}
void
+toggleversatile(Arg *arg) {
+ if(!sel || lt->arrange == versatile)
+ return;
+ sel->isversatile = !sel->isversatile;
+ lt->arrange();
+}
+
+void
updatesizehints(Client *c) {
long msize;
XSizeHints size;