Skip to content

Commit

Permalink
Fixed sens_areas reset (is done at rerendering of the whole)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnknownCylon committed Nov 29, 2012
1 parent 6d027b4 commit ec38ea6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions draw.c
Expand Up @@ -420,16 +420,15 @@ parse_line(const char *line, int lnr, int align, int reverse, int nodraw) {
else {
h = dzen.font.height;
py = (dzen.line_height - h) / 2;
xorig[LNR2WINDOW(lnr)] = 0;

xorig[LNR2WINDOW(lnr)] = 0;
if(lnr != -1) {
pm = XCreatePixmap(dzen.dpy, RootWindow(dzen.dpy, DefaultScreen(dzen.dpy)), dzen.slave_win.width,
dzen.line_height, DefaultDepth(dzen.dpy, dzen.screen));
}
else {
pm = XCreatePixmap(dzen.dpy, RootWindow(dzen.dpy, DefaultScreen(dzen.dpy)), dzen.title_win.width,
dzen.line_height, DefaultDepth(dzen.dpy, dzen.screen));
sens_areas_cnt = 0;
}

#ifdef DZEN_XFT
Expand Down Expand Up @@ -1015,6 +1014,7 @@ void
drawbody(char * text) {
char *ec;
int i, write_buffer=1;


if(dzen.slave_win.tcnt == -1) {
dzen.slave_win.tcnt = 0;
Expand Down
1 change: 1 addition & 0 deletions main.c
Expand Up @@ -158,6 +158,7 @@ read_stdin(void) {
}
else {
while((n_off = chomp(buf, retbuf, n_off, n))) {
sens_areas_cnt = 0;
if(!dzen.slave_win.ishmenu
&& dzen.tsupdate
&& dzen.slave_win.max_lines
Expand Down

0 comments on commit ec38ea6

Please sign in to comment.