Permalink
Browse files

Fix for right side text placement/clearing

  • Loading branch information...
1 parent 52bf26d commit 0839d305dbd72ea0202431c03ce3310870026c0c @moetunes committed Jul 20, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −0 Readme.md
  2. +2 −2 splitter_bar.c
View
@@ -5,6 +5,7 @@ Pipe monsterwm into splitter_bar to have it's output shown on the left.
Set the root windows' name with conky or a script and that will be shown on the right.
+e.g. conky | while read -r; do xsetroot -name "$REPLY"; done &
###The nine colours are set at compile time so edit them to suit.
View
@@ -29,7 +29,7 @@
#include <sys/time.h>
#include <unistd.h>
-#define TOP_BAR 0 // 0=Bar at top, 1=Bar at bottom
+#define TOP_BAR 1 // 0=Bar at top, 1=Bar at bottom
#define BAR_HEIGHT 16
#define BAR_WIDTH 0 // 0=Full width or use num pixels
// If font isn't found "fixed" will be used
@@ -199,7 +199,7 @@ void update_right() {
print_right_text();
}
- XCopyArea(dis, winbar, barwin, theme[1].gc, text_start, 0, width-text_start, height, text_start, 0);
+ XCopyArea(dis, winbar, barwin, theme[1].gc, old_textstart, 0, width-old_textstart, height, old_textstart, 0);
for(n=0;n<256;n++)
right[n] ='\0';
XSync(dis, False);

0 comments on commit 0839d30

Please sign in to comment.