make it possible to trace pixmap leakage via xrestop
svn path=/trunk/KDE/kdebase/workspace/; revision=511473
This commit is contained in:
parent
09b981ef2b
commit
c620818dc3
1 changed files with 14 additions and 0 deletions
|
@ -2484,6 +2484,17 @@ usage (char *program)
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
give_me_a_name(void)
|
||||||
|
{
|
||||||
|
Window w;
|
||||||
|
|
||||||
|
w = XCreateSimpleWindow (dpy, RootWindow(dpy, 0), 0, 0, 1, 1, 0, None,
|
||||||
|
None);
|
||||||
|
Xutf8SetWMProperties(dpy, w, "kcompmgr", "kcompmgr", NULL, 0, NULL, NULL,
|
||||||
|
NULL);
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
@ -2628,6 +2639,9 @@ main (int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "Started\n");
|
fprintf(stderr, "Started\n");
|
||||||
|
|
||||||
|
give_me_a_name();
|
||||||
|
|
||||||
/* get atoms */
|
/* get atoms */
|
||||||
shadowAtom = XInternAtom (dpy, SHADOW_PROP, False);
|
shadowAtom = XInternAtom (dpy, SHADOW_PROP, False);
|
||||||
opacityAtom = XInternAtom (dpy, OPACITY_PROP, False);
|
opacityAtom = XInternAtom (dpy, OPACITY_PROP, False);
|
||||||
|
|
Loading…
Reference in a new issue