diff options
author | okan | 2013-07-15 14:50:44 +0000 |
---|---|---|
committer | okan | 2013-07-15 14:50:44 +0000 |
commit | b048dc85890003b1b2048f6b6ba9733e578d6478 (patch) | |
tree | e18a7141ee6af96c8f2dde65fb515a16035306c9 /calmwm.c | |
parent | e2b4dc0478e93db4ec1eed08ef1b5bd5869d1e03 (diff) | |
download | cwm-b048dc85890003b1b2048f6b6ba9733e578d6478.tar.gz |
simplify atom handling; allows us to limit to one round-trip to server
for gathering Atoms.
Diffstat (limited to 'calmwm.c')
-rw-r--r-- | calmwm.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |