[wiki] [official] example about our philosophy || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Wed, 30 Jul 2008 20:31:52 +0100 (BST)

changeset: 83:64d92b6491ed
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Wed Jul 30 20:02:39 2008 +0100
files: index.md
description:
example about our philosophy


diff -r daeb1fbae07e -r 64d92b6491ed index.md
--- a/index.md Tue Jul 29 19:32:37 2008 -0400
+++ b/index.md Wed Jul 30 20:02:39 2008 +0100
_AT_@ -4,6 +4,32 @@
 
 Home of [wmii](/wmii/), [dwm](/dwm/), [libixp](/libs/libixp.html), and other quality
 software with a focus on simplicity, clarity, and frugality.
+
+Our philosophy exemplified, dwm-1.0 vs dwm-5.1
+----------------------------------------------
+ _AT_@ -1,17 +1,7 @@
+ void
+ -tag(Arg *arg)
+ -{
+ - unsigned int i;
+ -
+ - if(!sel)
+ - return;
+ -
+ - for(i = 0; i < ntags; i++)
+ - sel->tags[i] = False;
+ - sel->tags[arg->i] = True;
+ - settitle(sel);
+ - if(!isvisible(sel))
+ - arrange(NULL);
+ - else
+ - drawstatus();
+ +tag(const Arg *arg) {
+ + if(sel && arg->ui & TAGMASK) {
+ + sel->tags = arg->ui & TAGMASK;
+ + arrange();
+ + }
+ }
 
 29/07/2008
 ----------
Received on Wed Jul 30 2008 - 21:31:52 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:30:22 CEST