mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
Temporarilly fix some focus issues (still need rewrite). Some rc.wmii fixes.
This commit is contained in:
parent
dcf1c9ec1d
commit
f6a4b6b876
2
event.c
2
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);
|
||||
}
|
||||
|
1
main.c
1
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";
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user