projects
/
dana
/
xcompmgr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
82e467e
)
Set the _NET_WM_CM_S* atom on the screen we're running on.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Wed, 6 Sep 2006 17:04:47 +0000
(19:04 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Wed, 6 Sep 2006 17:04:47 +0000
(19:04 +0200)
xcompmgr.c
patch
|
blob
|
history
diff --git
a/xcompmgr.c
b/xcompmgr.c
index
9f90595
..
5996d1a
100644
(file)
--- a/
xcompmgr.c
+++ b/
xcompmgr.c
@@
-1861,15
+1861,21
@@
usage (char *program)
}
static void
}
static void
-
give_me_a_name
(void)
+
register_cm
(void)
{
Window w;
{
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);
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
}
int
@@
-1999,7
+2005,7
@@
main (int argc, char **argv)
exit (1);
}
exit (1);
}
-
give_me_a_name
();
+
register_cm
();
/* get atoms */
opacityAtom = XInternAtom (dpy, OPACITY_PROP, False);
/* get atoms */
opacityAtom = XInternAtom (dpy, OPACITY_PROP, False);