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

This commit is contained in:
Kris Maglione 2007-02-23 00:07:30 -05:00
parent dcf1c9ec1d
commit f6a4b6b876
4 changed files with 5 additions and 3 deletions

View File

@ -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);
}

1
main.c
View File

@ -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";

View File

@ -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
}

1
wmii.h
View File

@ -235,6 +235,7 @@ struct WMScreen {
Client *client;
View *view;
Key *key;
Client c_magic;
enum { BUFFER_SIZE = 8092 };
char buffer[BUFFER_SIZE];