[hackers] [wmii] Re-add M-f keybinding. Remember a client's size when making it fullscreen.

From: Kris Maglione <jg_AT_suckless.org>
Date: Mon Jul 02 20:13:56 2007

changeset: 2185:5f05bc42224c
parent: 2183:8c8fcf21722e
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Jul 02 14:07:29 2007 -0400
summary: Re-add M-f keybinding. Remember a client's size when making it fullscreen.

diff -r f4480b193f3a -r 5f05bc42224c cmd/wmii/area.c
--- a/cmd/wmii/area.c Mon Jul 02 19:58:07 2007 +0200
+++ b/cmd/wmii/area.c Mon Jul 02 14:07:29 2007 -0400
@@ -135,7 +135,7 @@ destroy_area(Area *a) {
         i = 0;
         for(ta=v->area; ta != a; ta=ta->next)
                 i++;
-
+
         if(a->prev)
                 ta = a->prev;
         else
diff -r f4480b193f3a -r 5f05bc42224c cmd/wmii/client.c
--- a/cmd/wmii/client.c Mon Jul 02 19:58:07 2007 +0200
+++ b/cmd/wmii/client.c Mon Jul 02 14:07:29 2007 -0400
@@ -452,10 +452,13 @@ fullscreen(Client *c, int fullscreen) {
 
         if((f = c->sel)) {
                 if(fullscreen) {
- if(!f->area->floating)
+ if(f->area->floating)
+ f->revert = f->r;
+ else
                                 send_to_area(f->view->area, f);
                         focus_client(c);
- }
+ }else
+ resize_frame(f, f->revert);
                 if(f->view == screen->sel)
                         focus_view(screen, f->view);
         }
diff -r f4480b193f3a -r 5f05bc42224c cmd/wmii/message.c
--- a/cmd/wmii/message.c Mon Jul 02 19:58:07 2007 +0200
+++ b/cmd/wmii/message.c Mon Jul 02 14:07:29 2007 -0400
@@ -511,7 +511,7 @@ send_client(View *v, IxpMsg *m, Bool swa
                         if(!i--) break;
                 break;
         }
-
+
         if(!to && !swap && (f->anext || f != a->frame))
                 to = new_column(v, a, 0);
 
diff -r f4480b193f3a -r 5f05bc42224c man/wmii.tex
--- a/man/wmii.tex Mon Jul 02 19:58:07 2007 +0200
+++ b/man/wmii.tex Mon Jul 02 14:07:29 2007 -0400
@@ -66,7 +66,7 @@ the bar, which are described in detail i
         \emph{work}, or several tags, e.g. \emph{work+mail}.
         Tags are separated with the \emph{+} character.
 \item[View] A set of clients containing a specific tag, quite
- similar to a workspace in other window managers. It
+ similiar to a workspace in other window managers. It
         consists of the floating and managed layers.
 \item[Column] A column is a screen area which arranges clients
         vertically in a non-overlapping way. Columns provide
@@ -285,9 +285,9 @@ represents the currently selected client
 \item[label] Set or read a client's label (title).
 \item[props] Returns a clients class and label as:
         \emph{name}:\emph{class}:\emph{label}
-\item[tags] Set or read a client's tags. Tags are separated by
- \emph{+} or \emph{-}. Tags beginning with \emph{+} are
- added, while those beginning with \emph{-} are removed.
+\item[tags] Set or read a client's tags. Tags are seperated by
+ \emph{+} or \emph{-}. Tags begining with \emph{+} are
+ added, while those begining with \emph{-} are removed.
         If the tag string written begins with \emph{+} or
         \emph{-}, the written tags are added to or removed from
         the client's set, otherwise, the set is overwritten.
@@ -333,7 +333,7 @@ lexicographically.
 lexicographically.
 
 The files may be read to obtain the colors and text of the bars.
-The colors are at the beginning of the string, represented as a
+The colors are at the begining of the string, represented as a
 tuple of 3 hex color codes for the foreground, background, and
 border, respectively. When writing the bar files, the colors may
 be omitted if the text would not otherwise appear to contain
diff -r f4480b193f3a -r 5f05bc42224c rc/rc.wmii.rc
--- a/rc/rc.wmii.rc Mon Jul 02 19:58:07 2007 +0200
+++ b/rc/rc.wmii.rc Mon Jul 02 14:07:29 2007 -0400
@@ -125,7 +125,7 @@ fn Event-ClientMouseDown {
                 case Delete
                         wmiir xwrite /client/$client/ctl kill
                 case Fullscreen
- wmiir xwrite /client/$client/ctl Fullscreen
+ wmiir xwrite /client/$client/ctl Fullscreen on
                 }
                 if(! ~ $#do 0)
                         menulast = $do;
@@ -201,6 +201,8 @@ fn Key-$MODKEY-Shift-$DOWN { wmiir xwrit
 fn Key-$MODKEY-Shift-$DOWN { wmiir xwrite /tag/sel/ctl send sel down }
 fn Key-$MODKEY-Shift-$UP { wmiir xwrite /tag/sel/ctl send sel up }
 
+fn Key-$MODKEY-f { wmiir xwrite /client/sel/ctl Fullscreen toggle }
+
 fn Key-$MODKEY-space { wmiir xwrite /tag/sel/ctl select toggle }
 fn Key-$MODKEY-Shift-space { wmiir xwrite /tag/sel/ctl send sel toggle }
 
Received on Mon Jul 02 2007 - 20:13:56 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:31 UTC