nonameentername / wmii

Automatically exported from code.google.com/p/wmii
MIT License
0 stars 0 forks source link

Window header is still highlighted when focus is gone #268

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Open 2 windows
2.Make one of them to lose focus, and the other to get focus.
3.Both of the window headers are highlighted

What is the expected result? What do you see instead?
Only focused window should be highlighted at any time

What version of the product are you using (wmii -v)? On what operating
system (uname -a)?

wmii-3.9.2, ©2010 Kris Maglione

Linux hellstation 3.16.5-hardened #1 SMP PREEMPT Fri Oct 17 14:24:07 MSK 2014 
x86_64 AMD Phenom(tm) II X4 970 Processor AuthenticAMD GNU/Linux

Original issue reported on code.google.com by trupa...@gmail.com on 18 Oct 2014 at 3:18

Attachments:

GoogleCodeExporter commented 8 years ago
I'm also annoyed by this, but have figured out a workaround for now: changing 
the column mode seems to clear whatever it is that is causing the previously 
focused window to stay highlighted, so I added a couple of lines to re-set the 
column mode to the keybindings for movement:

Key $MODKEY-$LEFT   # Select the client to the left
        wmiir xwrite /tag/sel/ctl select left
        # get the current column
        c=$(wmiir read /tag/sel/ctl | sed 3q | tail -n 1 | sed 's/select //g' | sed 's/ .*//g')
        # get that column's mode
        mode=$(wmiir read /tag/sel/ctl | grep "colmode $c" | sed 's/.* //g')
        wmiir xwrite /tag/sel/ctl colmode sel $mode

etc. for the other directions. Hope this helps. Please forgive the sloppy 
sed-fu.

Original comment by cawtho...@gmail.com on 20 Oct 2014 at 12:21