freebsd-ports/graphics/telak/files/patch-telak.c
Jean-Yves Lefort 108960574a Add telak.
Telak is a small tool to draw local or remote pictures on your root window.
This is very useful if you want to have RRD graphs drawn above your wallpaper.

WWW: http://julien.danjou.info/telak.html

PR:		ports/86069
Submitted by:	Emanuel Haupt <ehaupt@critical.ch>
2005-09-13 23:15:46 +00:00

19 lines
686 B
C

--- telak.c.orig Wed Sep 14 01:08:51 2005
+++ telak.c Wed Sep 14 01:08:52 2005
@@ -91,7 +91,6 @@
Atom SWM_VROOT = XInternAtom(display, "__SWM_VROOT", False);
Atom NAUTILUS_DESKTOP_WINDOW_ID =
XInternAtom(display, "NAUTILUS_DESKTOP_WINDOW_ID", False);
- win = DefaultRootWindow(display);
Window unused, *windows = 0;
unsigned int count;
@@ -101,6 +100,7 @@
unsigned long nitems, bytes_after_return;
unsigned char *virtual_root_window;
+ win = DefaultRootWindow(display);
if(XGetWindowProperty(display, win, NAUTILUS_DESKTOP_WINDOW_ID,
0, 1, False, XA_WINDOW, &type, &format,
&nitems, &bytes_after_return,