[hackers] [wmii] Fix ticket #112 || Kris Maglione

From: <hg_AT_suckless.org>
Date: Mon, 25 May 2009 19:20:02 +0000 (UTC)

changeset: 2468:cb0ab85260f8
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon May 25 15:19:55 2009 -0400
files: cmd/menu/menu.c doc/wmii.pdf doc/wmii.tex
description:
Fix ticket #112

diff -r dfb3bbffd367 -r cb0ab85260f8 cmd/menu/menu.c
--- a/cmd/menu/menu.c Sat May 23 22:08:12 2009 -0400
+++ b/cmd/menu/menu.c Mon May 25 15:19:55 2009 -0400
@@ -73,6 +73,7 @@
         case ACCEPT:
                 srv.running = false;
                 if(!matchidx && matchfirst->retstring && !motion)
+ if(input.filter_start == 0 && input.pos == input.end)
                         menu_cmd(CMPL_FIRST, 0);
                 print("%s", input.string);
                 break;
diff -r dfb3bbffd367 -r cb0ab85260f8 doc/wmii.pdf
Binary file doc/wmii.pdf has changed
diff -r dfb3bbffd367 -r cb0ab85260f8 doc/wmii.tex
--- a/doc/wmii.tex Sat May 23 22:08:12 2009 -0400
+++ b/doc/wmii.tex Mon May 25 15:19:55 2009 -0400
@@ -9,11 +9,15 @@
 \usepackage{fancyvrb}
 \usepackage[top=1in,bottom=1in]{geometry}
 \usepackage{graphicx}
-\usepackage[xetex,breaklinks,colorlinks,linkcolor=black]{hyperref}
 \usepackage{makeidx}
 \usepackage{xcolor}
+\usepackage[xetex,breaklinks,colorlinks,linkcolor=black]{hyperref}
+
+\makeindex
 
 \setmainfont[Mapping=tex-text, Numbers=OldStyle]{Palatino LT Std}
+
+\let\primary=\textbf
 
 % Key specs
 \def\key#1{{\small$\langle$\addfontfeature{Numbers=Lining}#1\/$\rangle$}}
@@ -609,6 +613,10 @@
 With a basic understanding of bar items in mind, we can write
 our view event handlers:
 
+\index{events!CreateTag}
+\index{events!DestroyTag}
+\index{events!FocusTag}
+\index{events!UnfocusTag}
 \begin{code}
   «View Button Events» ::=
   CreateTag) # CreateTag ‹Tag Name›
@@ -623,6 +631,8 @@
 
 \subsection{Urgency}
 
+\index{events!UrgentTag|(}
+\index{events!NotUrgentTag|(}
 Windows can specify that they require attention, and in X11
 parlance, this is called urgency. When a window requests
 attention as such, or declares that it's been satisfied, \wmii\
@@ -642,6 +652,8 @@
   NotUrgentTag) # NotUrgentTag ‹‘Client’ or ‘Manager’› ‹Tag Name›
       wmiir xwrite /lbar/$2 $2;;
 \end{code}
+\index{events!UrgentTag|)}
+\index{events!NotUrgentTag|)}
 
 \subsection{Notices}
 
@@ -668,7 +680,7 @@
 key name, all separated by hyphens. Valid modifier names are
 |Control|, |Shift|, |Mod1| (usually Alt), |Mod2|, |Mod3|, |Mod4|
 (usually the Windows® key), and |Mod5|. Modifier keys can be
-changed via |xmodmap(1)|, which is beyond the scope of this
+changed via |xmodmap(1|), which is beyond the scope of this
 discussion. Key names can be detected by running |xev| from a
 terminal, pressing the desired key, and looking at the output
 (it's in the parentheses, after the keysym). A \wmii-specific
@@ -832,6 +844,7 @@
 
 \subsection{Click Menus}
 
+\index{events!ClientMouseDown}
 \begin{code}
   «Client Menu Events» ::=
   ClientMouseDown) # ClientMouseDown ‹Client ID› ‹Button›
@@ -843,6 +856,7 @@
 
 \subsection{Unresponsive Clients}
 
+\index{events!UnresponsiveClient|(}
 When \wmii\ tries to close a window, it waits 8 seconds for the
 client to respond, and then lets its scripts decide what to do
 with it. The stock scripts prompt the user for input:
@@ -862,6 +876,7 @@
       [ $resp = Kill ] && wmiir xwrite /client/$1/ctl slay
   } &;;
 \end{code}
+\index{events!UnresponsiveClient|)}
 
 \section{Views}
 
@@ -958,6 +973,7 @@
 
 \subsection{Click Menus}
 
+\index{events!LeftBarMouseDown}
 \begin{code}
   «Tag Menu Events» ::=
   LeftBarMouseDown) # LeftBarMouseDown ‹Button› ‹Bar Name›
@@ -1105,4 +1121,8 @@
   «Event Loop»
 \end{code}
 
+\backmatter
+
+\printindex
+
 \end{document}
Received on Mon May 25 2009 - 19:20:02 UTC

This archive was generated by hypermail 2.2.0 : Mon May 25 2009 - 19:24:05 UTC