about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-29 17:11:37 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-29 17:11:37 +0200
commit157ea539a2d1926ee3a9d2fe713eba0b9428f685 (patch)
tree1fa0ce4f751d15559d6d917bff758b6fc456a65e
parentc3c94c0e0a4da1562b040a17ee670312ad8e65af (diff)
downloaddwm-157ea539a2d1926ee3a9d2fe713eba0b9428f685.tar.gz
applied patch similiar proposed by dave tweed
-rw-r--r--tag.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/tag.c b/tag.c
index a2e1c89..ddffafa 100644
--- a/tag.c
+++ b/tag.c
@@ -30,6 +30,17 @@ RULES
 static RReg *rreg = NULL;
 static unsigned int len = 0;
 
+static void
+applytag()
+{
+	/* asserts sel != NULL */
+	settitle(sel);
+	if(!isvisible(sel))
+		arrange(NULL);
+	else
+		drawstatus();
+}
+
 /* extern */
 
 Client *
@@ -121,11 +132,7 @@ tag(Arg *arg)
 	for(i = 0; i < ntags; i++)
 		sel->tags[i] = False;
 	sel->tags[arg->i] = True;
-	settitle(sel);
-	if(!isvisible(sel))
-		arrange(NULL);
-	else
-		drawstatus();
+	applytag();
 }
 
 void
@@ -140,9 +147,5 @@ toggletag(Arg *arg)
 	for(i = 0; i < ntags && !sel->tags[i]; i++);
 	if(i == ntags)
 		sel->tags[arg->i] = True;
-	settitle(sel);
-	if(!isvisible(sel))
-		arrange(NULL);
-	else
-		drawstatus();
+	applytag();
 }
nd-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
<!DOCTYPE PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/1/DTD/1-strict.dtd">
<html xmlns="http://www.w3.org/1999/" lang="en" xml:lang="en">
<head>
        <meta http-equiv="Content-Type" content="text; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <title>tilde.institute :: Sign Up</title>
        <link rel="stylesheet" href="tilde.css" type="text/css"/>
        <link rel="icon" type="image/png" href="icon.png"/>
</head>
<body>
<div id="container">
	<div id="logo">
        <img src="logo.png" alt="" /><br />
		<div id="logobyline">
			of OpenBSD Education
		</div>
	</div>         
	<div id="navigation">
		<a href="http://tilde.institute">News</a> :: <a href="/signup">Sign Up</a> :: <a href="/coc">Code of Conduct</a> :: <a href="https://tilde.zone/@tildeinstitute">Mastodon</a> :: <a href="https://wiki.tilde.institute">Wiki</a> :: <a href="https://tildegit.org/institute">Git</a> :: <a href="/stats">Stats</a> :: <a href="https://twtxt.tilde.institute">twtxt</a>
	</div>
	<div id="content">
		<br />
		<form action="submit.php">
			&nbsp;&nbsp;&nbsp;&nbsp;<h3>Desired Username:</h3><br />
			<input type="text" size="32" name="username" required /><br />
			&nbsp;&nbsp;&nbsp;&nbsp;<h3>Your Email Address:</h3><br />
			<input type="email" size="32" name="email" required /><br />
			&nbsp;&nbsp;&nbsp;&nbsp;<h3>What interests you about tilde.institute?</h3><br />
			<input type="text" size="32" name="interest" /><br />
			&nbsp;&nbsp;&nbsp;&nbsp;<h3>Paste Your SSH Key:</h3><br />
            <input type="text" size="32" name="sshkey" required /><br /><br /><br />
			<input type="submit" value="Submit" />
		</form>
	</div>
</div>
</body>
</html>