comparison draw.c @ 11:da0e0496f75b

add "inverse" color set, for indicating in the status bar when in command mode
author paulo
date Tue, 18 Sep 2012 00:17:32 -0700
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;