[hackers] [wmii] Redraw view on writes to /ctl (focuscolors, border, font)

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri Feb 23 07:53:36 2007

changeset: 1940:65f402e1edad
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Fri Feb 23 01:53:08 2007 -0500
summary: Redraw view on writes to /ctl (focuscolors, border, font)

diff -r 2fa93da29d97 -r 65f402e1edad event.c
--- a/event.c Fri Feb 23 00:07:30 2007 -0500
+++ b/event.c Fri Feb 23 01:53:08 2007 -0500
@@ -266,7 +266,7 @@ focusout(XEvent *e) {
                                 return;
                 }
                 if(screen->focus == c)
- screen->focus = nil;
+ screen->focus = &c_magic;
                 update_client_grab(c);
                 if(c->sel)
                         draw_frame(c->sel);
diff -r 2fa93da29d97 -r 65f402e1edad fs.c
--- a/fs.c Fri Feb 23 00:07:30 2007 -0500
+++ b/fs.c Fri Feb 23 01:53:08 2007 -0500
@@ -770,6 +770,8 @@ fs_write(P9Req *r) {
                                         errstr = message_root(toks[i]);
                         }
                 }
+ if(screen->sel)
+ focus_view(screen, screen->sel);
                 if(errstr) {
                         respond(r, errstr);
                         return;
diff -r 2fa93da29d97 -r 65f402e1edad rc/rc.wmii
--- a/rc/rc.wmii Fri Feb 23 00:07:30 2007 -0500
+++ b/rc/rc.wmii Fri Feb 23 01:53:08 2007 -0500
@@ -226,8 +226,8 @@ initkeys
 initkeys
 
 # Tag Bar
-ifs='
-' {
+ifs='#
+'{
         for(bar in `{wmiir ls /lbar})
                 wmiir remove /lbar/$bar
         seltag=`{wmiir read /tag/sel/ctl}
Received on Fri Feb 23 2007 - 07:53:36 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:47 UTC