openbsd-ports/x11/root-tail/patches/patch-root-tail_c

21 lines
882 B
Plaintext
Raw Normal View History

$OpenBSD: patch-root-tail_c,v 1.3 2005/12/20 19:01:26 pvalchev Exp $
--- root-tail.c.orig Tue Dec 20 11:21:46 2005
+++ root-tail.c Tue Dec 20 11:22:16 2005
@@ -235,7 +235,6 @@ find_root_window (Display *display, int
{
Atom SWM_VROOT = XInternAtom (display, "__SWM_VROOT", False);
Atom NAUTILUS_DESKTOP_WINDOW_ID = XInternAtom (display, "NAUTILUS_DESKTOP_WINDOW_ID", False);
- root = RootWindow (display, screen_number);
Window unused, *windows = 0;
unsigned int count;
@@ -244,6 +243,8 @@ find_root_window (Display *display, int
int format;
unsigned long nitems, bytes_after_return;
unsigned char *virtual_root_window;
+
+ root = RootWindow (display, screen_number);
if (XGetWindowProperty (display, root, NAUTILUS_DESKTOP_WINDOW_ID,
0, 1, False, XA_WINDOW, &type, &format,