comparison draw.c @ 13:c65d4f8dc8fd

use inverse border color
author paulo
date Sat, 12 Mar 2016 23:30:00 -0800
parents bc03b37b37ba
children
comparison
equal deleted inserted replaced
3:7b178d0d327e 4:38322e989d57
88 } 88 }
89 drawtext(stext, dc.norm); 89 drawtext(stext, dc.norm);
90 90
91 if((dc.w = dc.x - x) > bh) { 91 if((dc.w = dc.x - x) > bh) {
92 dc.x = x; 92 dc.x = x;
93 drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm); 93 drawtext(sel ? sel->name : NULL, (getkeymode() == COMMANDMODE) ? dc.inv : (sel ? dc.sel : dc.norm));
94 } 94 }
95 XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, sw, bh, 0, 0); 95 XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, sw, bh, 0, 0);
96 96
97 if (TASKBAR) { 97 if (TASKBAR) {
98 dc.x = dc.y = 0; 98 dc.x = dc.y = 0;