aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-10-07 00:08:02 +0000
committerEric Anholt <anholt@freebsd.org>2005-10-07 00:08:02 +0000
commitf5fe54f5fdafdeeec6c57742287d058735163899 (patch)
tree93382457cb27294139eedcfcddd19b0f8f2503ca
parentBug #2391: Fix a use-after-free in run_fades. (Jonathan Briggs) (diff)
downloadxcman-f5fe54f5fdafdeeec6c57742287d058735163899.tar.gz
xcman-f5fe54f5fdafdeeec6c57742287d058735163899.tar.bz2
xcman-f5fe54f5fdafdeeec6c57742287d058735163899.tar.xz
Make a dummy window with a name, so xrestop can point its finger at
xcompmgr for being such a pig.
-rw-r--r--ChangeLog6
-rw-r--r--xcompmgr.c15
2 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 40c3a10..7607355 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-06 Eric Anholt <anholt@FreeBSD.org>
+
+ * xcompmgr.c: (give_me_a_name), (main):
+ Make a dummy window with a name, so xrestop can point its finger at
+ xcompmgr for being such a pig.
+
2005-01-27 Adam Jackson <ajax@freedesktop.org>
* xcompmgr.c:
diff --git a/xcompmgr.c b/xcompmgr.c
index 32e125d..9f90595 100644
--- a/xcompmgr.c
+++ b/xcompmgr.c
@@ -1860,6 +1860,18 @@ usage (char *program)
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, "xcompmgr", "xcompmgr", NULL, 0, NULL, NULL,
+ NULL);
+}
+
int
main (int argc, char **argv)
{
@@ -1986,6 +1998,9 @@ main (int argc, char **argv)
fprintf (stderr, "No XFixes extension\n");
exit (1);
}
+
+ give_me_a_name();
+
/* get atoms */
opacityAtom = XInternAtom (dpy, OPACITY_PROP, False);
winTypeAtom = XInternAtom (dpy, "_NET_WM_WINDOW_TYPE", False);