<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span style="font-weight: bold;">Hi guys from </span><span>xorg</span><span style="font-weight: bold;"> and </span><span>cairo</span><span style="font-weight: bold;"> mailling list, <br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">I sent this mail to both of you because I don't know who can explains to me something. I wrote a small code, it's just a window where you should see the date and the time.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">If you hit "</span><span>space</span><span style="font-weight: bold;">" the window moves, if you hit "</span><span>q</span><span style="font-weight: bold;">" the wm will exit</span><span style="font-weight: bold;"><span style="font-weight: bold;"> (ok ok it's a bit fulsome to call that shit a wm..)</span>.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">So now my problem, I need to redraw the clock, that actualy doesn't working yet, since I 'm bit lost with "when" and "how" to redraw,
if it's </span><span>cairo</span><span style="font-weight: bold;"> or </span><span>xlib</span><span style="font-weight: bold;"> who has (or both) to redraw etc.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">Moreover, there is something I don't understand more, when I hit "</span><span>space</span><span style="font-weight: bold;">", then the window moves and there is a redraw (you can see it when the minutes change).</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight:
bold;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">I added as attachments, </span><span>main.c</span><span style="font-weight: bold;"> and </span><span>Makefile</span><span style="font-weight: bold;"> so you just have to type "</span><span>make</span><span style="font-weight: bold;">" (using </span><span>pkg-config</span><span style="font-weight: bold;"> for </span><span>cairo</span><span style="font-weight: bold;">).<br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span
style="font-weight: bold;">I want to notice, I just see if I go to another console or X running and then I back, I see a visual glitch at the background of the window.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">-Nicoo</span></div></div></body></html>