[hackers] [wmii] Temporarilly fix some focus issues (still need rewrite). Some rc.wmii fixes.

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri Feb 23 06:08:28 2007

changeset: 1939:2fa93da29d97
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Fri Feb 23 00:07:30 2007 -0500
summary: Temporarilly fix some focus issues (still need rewrite). Some rc.wmii fixes.

diff -r 9015dc6d8948 -r 2fa93da29d97 event.c
--- a/event.c Thu Feb 22 22:36:50 2007 -0500
+++ b/event.c Fri Feb 23 00:07:30 2007 -0500
@@ -239,7 +239,7 @@ focusin(XEvent *e) {
         }else if(ev->mode == NotifyGrab) {
                 c = screen->focus;
                 if(c) {
- screen->focus = nil;
+ screen->focus = &c_magic;
                         if(c->sel)
                                 draw_frame(c->sel);
                 }
diff -r 9015dc6d8948 -r 2fa93da29d97 main.c
--- a/main.c Thu Feb 22 22:36:50 2007 -0500
+++ b/main.c Fri Feb 23 00:07:30 2007 -0500
@@ -20,6 +20,7 @@
 
 Bool verbose;
 Bool starting;
+Client c_magic = { 0 };
 static Bool check_other_wm;
 static int (*x_error_handler) (Display *, XErrorEvent *);
 static char version[] = "wmiiwm - " VERSION ", (C)opyright MMIV-MMVI Anselm R. Garbe\n";
diff -r 9015dc6d8948 -r 2fa93da29d97 rc/rc.wmii
--- a/rc/rc.wmii Thu Feb 22 22:36:50 2007 -0500
+++ b/rc/rc.wmii Fri Feb 23 00:07:30 2007 -0500
@@ -87,7 +87,7 @@ fn Action-rehash {
         proglist $PATH >$progs_file
 }
 fn Action-quit {
- wmiir xwrite quit /ctl
+ wmiir xwrite /ctl quit
 }
 fn Action-status {
         if(wmiir remove /rbar/status >[2]/dev/null)
@@ -233,7 +233,7 @@ ifs='
         seltag=`{wmiir read /tag/sel/ctl}
         for(tag in `{wmiir ls /tag | sed -e 's,/,,; /^sel$/d'}) {
                 if(~ $tag $seltag)
- echo $WMII_SELCOLORS $tag | wmiir create /lbar/$tag
+ echo $WMII_FOCUSCOLORS $tag | wmiir create /lbar/$tag
                 if not
                         echo $WMII_NORMCOLORS $tag | wmiir create /lbar/$tag
         }
diff -r 9015dc6d8948 -r 2fa93da29d97 wmii.h
--- a/wmii.h Thu Feb 22 22:36:50 2007 -0500
+++ b/wmii.h Fri Feb 23 00:07:30 2007 -0500
@@ -235,6 +235,7 @@ Client *client;
 Client *client;
 View *view;
 Key *key;
+Client c_magic;
 
 enum { BUFFER_SIZE = 8092 };
 char buffer[BUFFER_SIZE];
Received on Fri Feb 23 2007 - 06:08:28 UTC

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