root/ewmh.c

Revision 1, 0.6 KB (checked in by root, 3 years ago)

Initial commit

Line 
1/* evilwm - Minimalist Window Manager for X
2 * Copyright (C) 1999-2006 Ciaran Anscomb <evilwm@6809.org.uk>
3 * see README for license and other details. */
4
5#include <stdlib.h>
6#include "evilwm.h"
7#include "log.h"
8
9#ifdef VWM
10void update_net_wm_desktop(Client *c) {
11        XChangeProperty(dpy, c->window, xa_net_wm_desktop,
12                        XA_CARDINAL, 32, PropModeReplace,
13                        (unsigned char *)&c->vdesk, 1);
14}
15
16void update_net_wm_state(Client *c) {
17        Atom state[1];
18        int i = 0;
19        if (is_sticky(c))
20                state[i++] = xa_net_wm_state_sticky;
21        XChangeProperty(dpy, c->window, xa_net_wm_state,
22                        XA_ATOM, 32, PropModeReplace,
23                        (unsigned char *)&state, i);
24}
25#endif
Note: See TracBrowser for help on using the browser.