seamus

commit 13452aa5d00de057f2234d6912537c4da048dd1f

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

ui: remove some debug logs and don't overlaps windows

When two windows overlaps, and we dispatch a EXPOSE event in some of
them, it'll trigger a re-render event on both windows.

 src/ui.c | 10 ++--------


diff --git a/src/ui.c b/src/ui.c
index 9c5afb67b3b8c81f2fb95f83cb55d242beda7c4d..2dac5a1d27f5deb30aa3399b53526ef994c8e866 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -19,12 +19,12 @@
 	s->t = t;
 
 	TickitWindow *main_window = tickit_window_new(root, (TickitRect){
-		.top = 2, .left = 2, .lines = tickit_window_lines(root) - 5,
+		.top = 2, .left = 2, .lines = tickit_window_lines(root) - 6,
 		.cols = tickit_window_cols(root) - 2
 	}, 0);
 
 	TickitWindow *status_window = tickit_window_new(root, (TickitRect){
-		.top = tickit_window_lines(root) - 5, .left = 2, .lines = 5,
+		.top = tickit_window_lines(root) - 5 + 2, .left = 2, .lines = 5,
 		.cols = tickit_window_cols(root) - 2
 	}, 0);
 
@@ -80,7 +80,6 @@
 static int
 render_status_window(TickitWindow *win, TickitEventFlags flags, void *_info, void *data)
 {
-	log_info("Bootstraping status window");
 	TickitExposeEventInfo *info = _info;
 	TickitRenderBuffer *render_buffer = info->rb;
 	struct seamus_frontend *seamus = (struct seamus_frontend*) data;
@@ -107,9 +106,6 @@ 			tickit_renderbuffer_restore(render_buffer);
 		}
 
 	} else {
-		log_debug("Should have returned %d", r);
-		log_debug("Status: %s", seamus->current_status);
-
 		tickit_renderbuffer_goto(render_buffer, 0, 0);
 		{
 			tickit_renderbuffer_savepen(render_buffer);
@@ -131,8 +127,6 @@
 static int
 render_main_window(TickitWindow *win, TickitEventFlags flags, void *_info, void *data)
 {
-	log_info("Starting the rendering of main window");
-
 	TickitExposeEventInfo *info = _info;
 	TickitRenderBuffer *render_buffer = info->rb;
 	struct seamus_frontend *seamus = (struct seamus_frontend*) data;