[cairo] redraw, who (xlib/cairo), when...

First Last begre1929 at yahoo.com
Sat May 25 19:42:14 PDT 2013


Hi guys from xorgand cairomailling list, 

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.

If you hit "space" the window moves, if you hit "q" the wm will exit(ok ok it's a bit fulsome to call that shit a wm..).

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 cairoor xlibwho has (or both) to redraw etc.

Moreover, there is something I don't understand more, when I hit "space", then the window moves and there is a redraw (you can see it when the minutes change).

I added as attachments, main.cand Makefileso you just have to type "make" (using pkg-configfor cairo).


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.

-Nicoo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130525/4c5c7dbd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c
Type: text/x-csrc
Size: 3679 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130525/4c5c7dbd/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 188 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130525/4c5c7dbd/attachment.obj>


More information about the cairo mailing list