summaryrefslogtreecommitdiff
path: root/xcompmgr.c
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2006-09-06 19:04:47 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2006-09-06 19:04:47 +0200
commitd75fd64f7aefd818dcac7ab2ebdf57e69bf12ea5 (patch)
treecff7a620456d7ca44ee27365f9709ae6e2dc2929 /xcompmgr.c
parent82e467ece3bd9cd5e6ae79cfa3b5f36b750ae7ec (diff)
Set the _NET_WM_CM_S* atom on the screen we're running on.
Diffstat (limited to 'xcompmgr.c')
-rw-r--r--xcompmgr.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/xcompmgr.c b/xcompmgr.c
index 9f90595..5996d1a 100644
--- a/xcompmgr.c
+++ b/xcompmgr.c
@@ -1861,15 +1861,21 @@ usage (char *program)
}
static void
-give_me_a_name (void)
+register_cm (void)
{
Window w;
+ Atom a;
w = XCreateSimpleWindow (dpy, RootWindow (dpy, 0), 0, 0, 1, 1, 0, None,
None);
Xutf8SetWMProperties (dpy, w, "xcompmgr", "xcompmgr", NULL, 0, NULL, NULL,
NULL);
+
+ /* FIXME: Don't hard code the screen number */
+ a = XInternAtom (dpy, "_NET_WM_CM_S0", False);
+
+ XSetSelectionOwner (dpy, a, w, 0);
}
int
@@ -1999,7 +2005,7 @@ main (int argc, char **argv)
exit (1);
}
- give_me_a_name();
+ register_cm();
/* get atoms */
opacityAtom = XInternAtom (dpy, OPACITY_PROP, False);