- fill_rect(win->get_rect(), 106, 106, 250);
+ const char *win_title = win->get_title();
+ const char *t1 = "red";
+ const char *t2 = "green";
+
+ if(!strcmp(win_title, t1)) {
+ fill_rect(win->get_absolute_rect(), 255, 0, 0);
+ }
+
+ if(!strcmp(win_title, t2)) {
+ fill_rect(win->get_absolute_rect(), 0, 255, 0);
+ }