diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2013-07-15 14:50:45 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2013-07-15 14:50:45 +0000 |
commit | be70e602e97b58ccaeb6051e52a64636ab31aa96 (patch) | |
tree | 500636b620782d3fde57fa98c490c7306257bed1 /app/cwm/calmwm.c | |
parent | 3a2a61063bb13507d6208279c6b7a501cd8fb92c (diff) |
simplify atom handling; allows us to limit to one round-trip to server
for gathering Atoms.
Diffstat (limited to 'app/cwm/calmwm.c')
-rw-r--r-- | app/cwm/calmwm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/cwm/calmwm.c b/app/cwm/calmwm.c index 4fc641d8e..b44196c28 100644 --- a/app/cwm/calmwm.c +++ b/app/cwm/calmwm.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.c,v 1.79 2013/07/08 15:46:16 okan Exp $ + * $OpenBSD: calmwm.c,v 1.80 2013/07/15 14:50:44 okan Exp $ */ #include <sys/param.h> @@ -37,6 +37,8 @@ char **cwm_argv; Display *X_Dpy; +Atom cwmh[CWMH_NITEMS]; +Atom ewmh[EWMH_NITEMS]; struct screen_ctx_q Screenq = TAILQ_HEAD_INITIALIZER(Screenq); struct client_ctx_q Clientq = TAILQ_HEAD_INITIALIZER(Clientq); @@ -129,7 +131,7 @@ x_init(const char *dpyname) HasRandr = XRRQueryExtension(X_Dpy, &Randr_ev, &i); - xu_getatoms(); + conf_atoms(); conf_cursor(&Conf); |