wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit f6a4b6b876a5e008d08f639508f14e724fdc8be5
parent dcf1c9ec1d09af6e69073680eb80c195bb695afd
Author: Kris Maglione <jg@suckless.org>
Date:   Fri, 23 Feb 2007 00:07:30 -0500

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

Diffstat:
event.c | 2+-
main.c | 1+
rc/rc.wmii | 4++--
wmii.h | 1+
4 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/event.c b/event.c @@ -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 --git a/main.c b/main.c @@ -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 --git a/rc/rc.wmii b/rc/rc.wmii @@ -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 --git a/wmii.h b/wmii.h @@ -235,6 +235,7 @@ struct WMScreen { Client *client; View *view; Key *key; +Client c_magic; enum { BUFFER_SIZE = 8092 }; char buffer[BUFFER_SIZE];